Cross Reference: cswap
xref: /gem5/ext/systemc/src/sysc/qt/time/cswap
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /gem5/ext/systemc/src/sysc/qt/time/
cswap revision 12027
110515SAli.Saidi@ARM.com#! /bin/awk -f
210515SAli.Saidi@ARM.com
310515SAli.Saidi@ARM.comBEGIN {
410515SAli.Saidi@ARM.com  purpose = "report time used by int only and int+fp cswaps";
510515SAli.Saidi@ARM.com
611570SCurtis.Dunham@arm.com  nmach = 0;
711570SCurtis.Dunham@arm.com
810515SAli.Saidi@ARM.com  test_int = "7";
911014Sandreas.sandberg@arm.com  test_fp = "8";
1010515SAli.Saidi@ARM.com}
1110515SAli.Saidi@ARM.com
1211014Sandreas.sandberg@arm.com{
1311014Sandreas.sandberg@arm.com  mach = $1
1411680SCurtis.Dunham@arm.com  test = $2
1510515SAli.Saidi@ARM.com  iter = $3
1610515SAli.Saidi@ARM.com  time = $6 + $8
17
18  if (machi[mach] == 0) {
19    machn[nmach] = mach;
20    machi[mach] = 1;
21    ++nmach;
22  }
23
24  us_per_op = time / iter * 1000000
25  times[mach "_" test] = us_per_op;
26}
27
28
29END {
30  for (i=0; i<nmach; ++i) {
31    m = machn[i];
32
33    integer = times[m "_" test_int];
34    fp = times[m "_" test_fp];
35    printf ("%s|%3.1f|%3.1f\n", m, integer, fp);
36  }
37}
38

Indexes created Thu Sep 26 06:36:22 EDT 2019