]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
perf record: Print out the number of events captured
authorIngo Molnar <mingo@elte.hu>
Tue, 2 Jun 2009 21:43:11 +0000 (23:43 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 2 Jun 2009 21:43:11 +0000 (23:43 +0200)
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 <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/builtin-record.c

index 2741b3561bb72f8619c331ff0d93710ae0fe0e5d..ec3b73adbd9d113496cb1643124b5a546b065ebb 100644 (file)
@@ -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;
 }