From: Ingo Molnar Date: Tue, 2 Jun 2009 21:43:11 +0000 (+0200) Subject: perf record: Print out the number of events captured X-Git-Tag: v2.6.31-rc1~383^2~112 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=addc2785ce92ff05da8edf18317b6b4719e10d9f;p=~emulex%2Finfiniband.git 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 Cc: Mike Galbraith Cc: Paul Mackerras Cc: Corey Ashford Cc: Marcelo Tosatti Cc: Arnaldo Carvalho de Melo Cc: Thomas Gleixner Cc: John Kacur LKML-Reference: Signed-off-by: Ingo Molnar --- diff --git a/Documentation/perf_counter/builtin-record.c b/Documentation/perf_counter/builtin-record.c index 2741b3561bb..ec3b73adbd9 100644 --- a/Documentation/perf_counter/builtin-record.c +++ b/Documentation/perf_counter/builtin-record.c @@ -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; }