Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257081
b: refs/heads/master
c: 3ae9a34
h: refs/heads/master
i:
  257079: 0ee218b
v: v3
  • Loading branch information
Zhengyu He authored and Ingo Molnar committed Jul 1, 2011
1 parent c6f4084 commit aaa489e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 343a031f3c4a7a663192cf56368bb5a6c56870c0
refs/heads/master: 3ae9a34d747f9abf2bcc85dc0e77b951513ccdf2
9 changes: 6 additions & 3 deletions trunk/tools/perf/builtin-stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,10 @@ static void print_noise_pct(double total, double avg)
if (avg)
pct = 100.0*total/avg;

fprintf(stderr, " ( +-%6.2f%% )", pct);
if (csv_output)
fprintf(stderr, "%s%.2f%%", csv_sep, pct);
else
fprintf(stderr, " ( +-%6.2f%% )", pct);
}

static void print_noise(struct perf_evsel *evsel, double avg)
Expand Down Expand Up @@ -882,13 +885,13 @@ static void print_counter_aggr(struct perf_evsel *counter)
else
abs_printout(-1, counter, avg);

print_noise(counter, avg);

if (csv_output) {
fputc('\n', stderr);
return;
}

print_noise(counter, avg);

if (scaled) {
double avg_enabled, avg_running;

Expand Down

0 comments on commit aaa489e

Please sign in to comment.