aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/builtin-report.c
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/perf_counter/builtin-report.c')
-rw-r--r--Documentation/perf_counter/builtin-report.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c
index 8ea8aaa05af5..4b5ccc5bd0e6 100644
--- a/Documentation/perf_counter/builtin-report.c
+++ b/Documentation/perf_counter/builtin-report.c
@@ -645,7 +645,7 @@ static int __cmd_report(void)
645 char *buf; 645 char *buf;
646 event_t *event; 646 event_t *event;
647 int ret, rc = EXIT_FAILURE; 647 int ret, rc = EXIT_FAILURE;
648 unsigned long total = 0, total_mmap = 0, total_comm = 0; 648 unsigned long total = 0, total_mmap = 0, total_comm = 0, total_unknown;
649 649
650 input = open(input_name, O_RDONLY); 650 input = open(input_name, O_RDONLY);
651 if (input < 0) { 651 if (input < 0) {
@@ -785,6 +785,7 @@ more:
785 default: { 785 default: {
786 fprintf(stderr, "skipping unknown header type: %d\n", 786 fprintf(stderr, "skipping unknown header type: %d\n",
787 event->header.type); 787 event->header.type);
788 total_unknown++;
788 } 789 }
789 } 790 }
790 791
@@ -796,9 +797,10 @@ done:
796 close(input); 797 close(input);
797 798
798 if (dump_trace) { 799 if (dump_trace) {
799 fprintf(stderr, " IP events: %10ld\n", total); 800 fprintf(stderr, " IP events: %10ld\n", total);
800 fprintf(stderr, " mmap events: %10ld\n", total_mmap); 801 fprintf(stderr, " mmap events: %10ld\n", total_mmap);
801 fprintf(stderr, " comm events: %10ld\n", total_comm); 802 fprintf(stderr, " comm events: %10ld\n", total_comm);
803 fprintf(stderr, " unknown events: %10ld\n", total_unknown);
802 804
803 return 0; 805 return 0;
804 } 806 }