Skip to contentSkip to conversation

perf record: Print out the number of events captured

tip:perfcounters/core tip-bot for Ingo Molnar 1 participant 1 message Jun 2, 2009 Documentation

lore
Share & tools
lore
#0 lore raw
Commit-ID:  addc2785ce92ff05da8edf18317b6b4719e10d9f
Gitweb:     http://git.kernel.org/tip/addc2785ce92ff05da8edf18317b6b4719e10d9f
Author:     Ingo Molnar <[email protected]>
AuthorDate: Tue, 2 Jun 2009 23:43:11 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 2 Jun 2009 23:43:11 +0200

perf record: Print out the number of events captured

It makes sense to inform the user about how many events perf record has written - so that the sufficiency of profiling coverage and intensity can be determined at a glance.

Cc: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: Marcelo Tosatti <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: John Kacur <[email protected]>
LKML-Reference: <new-submission>

---
 Documentation/perf_counter/builtin-record.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Documentation/perf_counter/builtin-record.c +3 -0
index 2741b35..ec3b73a 100644
@@ -467,6 +467,9 @@ static int __cmd_record(int argc, const char **argv)
 			ret = poll(event_array, nr_poll, 100);
 	}
 
+
+	fprintf(stderr, "[ perf record: Captured and wrote %ld events. ]\n", events);
+
 	return 0;
 }