assim revision 12027
16157Snate@binkert.org#! /bin/awk -f
26157Snate@binkert.org
36157Snate@binkert.orgBEGIN {
46157Snate@binkert.org  nmach = 0;
56157Snate@binkert.org
66157Snate@binkert.org  init_test = "1";
76157Snate@binkert.org  abort_test = "6";
86157Snate@binkert.org  blocki_test = "7";
96157Snate@binkert.org  block_test = "8";
106157Snate@binkert.org}
116157Snate@binkert.org
126157Snate@binkert.org{
136157Snate@binkert.org  mach = $1
146157Snate@binkert.org  test = $2
156157Snate@binkert.org  iter = $3
166157Snate@binkert.org  time = $6 + $8
176157Snate@binkert.org
186157Snate@binkert.org  if (machi[mach] == 0) {
196157Snate@binkert.org    machn[nmach] = mach;
206157Snate@binkert.org    machi[mach] = 1;
216157Snate@binkert.org    ++nmach;
226157Snate@binkert.org  }
236157Snate@binkert.org
246157Snate@binkert.org  us_per_op = time / iter * 1000000
256157Snate@binkert.org  times[mach "_" test] = us_per_op;
266157Snate@binkert.org}
276157Snate@binkert.org
286157Snate@binkert.org
296157Snate@binkert.orgEND {
306157Snate@binkert.org  for (i=0; i<nmach; ++i) {
316157Snate@binkert.org    m = machn[i];
326157Snate@binkert.org    init = times[m "_" init_test];
336157Snate@binkert.org    printf ("init %s | %f\n", m, init);
346157Snate@binkert.org
356157Snate@binkert.org    init_abort_blocki = times[m "_" abort_test];
366157Snate@binkert.org    abort_blocki = init_abort_blocki - init;
376157Snate@binkert.org    blocki = times[m "_" blocki_test];
386157Snate@binkert.org    abort = abort_blocki - blocki;
396157Snate@binkert.org    blockf = times[m "_" block_test];
406168Snate@binkert.org    printf ("swap %s | %f | %f | %f\n", m, abort, blocki, blockf);
416168Snate@binkert.org  }
426168Snate@binkert.org}
436286Snate@binkert.org