Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147534
b: refs/heads/master
c: 3e70611
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed May 26, 2009
1 parent 164f394 commit 297488e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 97b07b699b11d4bd1218a841e5dfed16bd53de06
refs/heads/master: 3e70611460fe74ad32534fa9791774f6bbdd4159
10 changes: 6 additions & 4 deletions trunk/Documentation/perf_counter/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ static int __cmd_report(void)
char *buf;
event_t *event;
int ret, rc = EXIT_FAILURE;
unsigned long total = 0, total_mmap = 0, total_comm = 0;
unsigned long total = 0, total_mmap = 0, total_comm = 0, total_unknown;

input = open(input_name, O_RDONLY);
if (input < 0) {
Expand Down Expand Up @@ -785,6 +785,7 @@ static int __cmd_report(void)
default: {
fprintf(stderr, "skipping unknown header type: %d\n",
event->header.type);
total_unknown++;
}
}

Expand All @@ -796,9 +797,10 @@ static int __cmd_report(void)
close(input);

if (dump_trace) {
fprintf(stderr, " IP events: %10ld\n", total);
fprintf(stderr, " mmap events: %10ld\n", total_mmap);
fprintf(stderr, " comm events: %10ld\n", total_comm);
fprintf(stderr, " IP events: %10ld\n", total);
fprintf(stderr, " mmap events: %10ld\n", total_mmap);
fprintf(stderr, " comm events: %10ld\n", total_comm);
fprintf(stderr, " unknown events: %10ld\n", total_unknown);

return 0;
}
Expand Down

0 comments on commit 297488e

Please sign in to comment.