some awks dont support large ints
This commit is contained in:
1 parent
0bc3785161
commit
1eaadc9d46
1 file changed
+5
-5
@@ -25,8 +25,8 @@ perf stat -e cycles \
|
|||||||
-e r00c4 -e r00c5 -e instructions \
|
-e r00c4 -e r00c5 -e instructions \
|
||||||
-a -I $(( secs * 1000 )) sleep $duration 2>&1 | awk -v hlines=$hlines '
|
-a -I $(( secs * 1000 )) sleep $duration 2>&1 | awk -v hlines=$hlines '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
htxt = sprintf("%-13s %-13s %5s %-12s %-10s %5s %-11s %-10s %5s",
|
htxt = sprintf("%-10s %-10s %5s %-12s %-10s %5s %-11s %-10s %5s",
|
||||||
"CYCLES", "INSTRUCTIONS", "IPC", "BR_RETIRED", "BR_MISPRED", "BMR%",
|
"K_CYCLES", "K_INSTR", "IPC", "BR_RETIRED", "BR_MISPRED", "BMR%",
|
||||||
"LLCREF", "LLCMISS", "LLC%");
|
"LLCREF", "LLCMISS", "LLC%");
|
||||||
print htxt
|
print htxt
|
||||||
header = hlines
|
header = hlines
|
||||||
@@ -52,7 +52,7 @@ perf stat -e cycles \
|
|||||||
ins = $2
|
ins = $2
|
||||||
if (llcref == 0) { llcref = 1; llcmiss = 0 }
|
if (llcref == 0) { llcref = 1; llcmiss = 0 }
|
||||||
|
|
||||||
printf("%-13d %-13d %5.2f %-12d %-10d %5.2f %-11d %-10d %5.2f\n",
|
printf("%-10d %-10d %5.2f %-12d %-10d %5.2f %-11d %-10d %5.2f\n",
|
||||||
cycles, ins, ins / cycles, brretired, brmiss, brratio,
|
cycles / 1000, ins / 1000, ins / cycles, brretired, brmiss,
|
||||||
llcref, llcmiss, 100 * (llcref - llcmiss) / llcref) }
|
brratio, llcref, llcmiss, 100 * (llcref - llcmiss) / llcref) }
|
||||||
'
|
'
|
||||||
Reference in new issue
Block a user