Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169624
b: refs/heads/master
c: 7255fe2
h: refs/heads/master
v: v3
  • Loading branch information
Lucas De Marchi authored and Ingo Molnar committed Nov 15, 2009
1 parent 4081ef3 commit b7ac8f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2fb8b4151a92223da6a84006f8f248ebeb6677d
refs/heads/master: 7255fe2a42c612f2b8fe4c347f0a5f0c97d85a46
5 changes: 3 additions & 2 deletions trunk/tools/perf/builtin-stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,15 +357,16 @@ static void abs_printout(int counter, double avg)
ratio = avg / total;

fprintf(stderr, " # %10.3f IPC ", ratio);
} else if (MATCH_EVENT(HARDWARE, HW_BRANCH_MISSES, counter)) {
} else if (MATCH_EVENT(HARDWARE, HW_BRANCH_MISSES, counter) &&
runtime_branches_stats.n != 0) {
total = avg_stats(&runtime_branches_stats);

if (total)
ratio = avg * 100 / total;

fprintf(stderr, " # %10.3f %% ", ratio);

} else {
} else if (runtime_nsecs_stats.n != 0) {
total = avg_stats(&runtime_nsecs_stats);

if (total)
Expand Down

0 comments on commit b7ac8f7

Please sign in to comment.