mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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 <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>
This commit is contained in:
parent
bf9e187637
commit
addc2785ce
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue