Arnaldo Carvalho de Melo
fec9cbd15b
perf hists: Print number of samples, not the period sum
So that we match the header where we state the number of events with the
"Samples" column when using 'perf report -n/--show-nr-samples':
[root@emilia ~]# perf record -a sleep 1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.111 MB perf.data (~4860 samples) ]
[root@emilia ~]# perf report --stdio --show-nr-samples
# Events: 11 cycles
#
# Overhead Samples Command Shared Object Symbol
# ........ .......... ........... .................. ............................
#
16.65% 1 sleep [kernel.kallsyms] [k] unmap_vmas
16.10% 1 perf libpthread-2.12.so [.] __pthread_cleanup_push_defer
15.79% 2 perf [kernel.kallsyms] [k] format_decode
12.88% 1 kworker/1:2 [kernel.kallsyms] [k] cache_reap
10.69% 1 swapper [kernel.kallsyms] [k] _raw_spin_lock
7.55% 1 sleep [kernel.kallsyms] [k] prepare_exec_creds
6.00% 1 perf [jbd2] [k] start_this_handle
5.29% 1 perf [kernel.kallsyms] [k] seq_read
4.75% 1 perf [kernel.kallsyms] [k] get_pid_task
4.30% 1 perf [kernel.kallsyms] [k] _raw_spin_unlock_irqrestore
#
# (For a higher level overview, try: perf report --sort comm,dso)
#
[root@emilia ~]#
Reported-by: Stephane Eranian <eranian@google.com>
Acked-by: Stephane Eranian <eranian@google.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2011-02-17 13:56:20 -02:00
..
2011-01-22 19:56:28 -02:00
2011-02-07 12:41:41 -02:00
2011-02-16 14:47:55 -02:00
2010-05-18 23:03:35 -03:00
2009-07-01 12:49:48 +02:00
2011-02-16 14:47:55 -02:00
2011-02-08 15:29:25 -02:00
2010-05-02 12:00:44 -03:00
2011-01-29 16:25:37 -02:00
2010-05-20 12:15:33 -03:00
2011-01-31 18:08:39 -02:00
2011-01-29 16:25:37 -02:00
2011-01-29 16:25:37 -02:00
2011-02-16 13:30:48 +01:00
2011-02-16 13:30:48 +01:00
2010-04-02 16:28:15 -03:00
2010-04-02 16:28:15 -03:00
2010-06-05 09:34:04 -03:00
2011-01-22 19:56:30 -02:00
2011-01-22 19:56:30 -02:00
2009-11-23 21:55:20 +01:00
2011-01-29 16:25:37 -02:00
2011-01-29 16:25:37 -02:00
2009-12-28 10:36:36 +01:00
2009-12-28 10:36:36 +01:00
2011-02-11 11:45:54 -02:00
2011-02-11 11:45:54 -02:00
2011-01-31 12:40:52 -02:00
2011-01-31 12:40:52 -02:00
2011-02-17 10:29:19 -02:00
2011-02-17 10:29:19 -02:00
2010-05-18 23:05:28 -03:00
2010-05-18 23:03:35 -03:00
2011-02-07 12:41:41 -02:00
2011-01-29 16:25:37 -02:00
2010-05-18 23:03:35 -03:00
2009-09-24 21:27:51 +02:00
2011-02-17 13:56:20 -02:00
2011-02-08 15:03:36 -02:00
2010-05-02 12:00:44 -03:00
2009-09-24 21:27:51 +02:00
2011-01-22 23:41:57 -02:00
2010-10-21 16:11:44 -02:00
2009-06-27 06:06:39 +02:00
2011-02-17 10:29:19 -02:00
2011-01-22 19:56:28 -02:00
2010-05-17 16:22:41 -03:00
2010-12-06 15:33:29 -02:00
2010-08-21 11:22:47 -03:00
2010-07-05 10:42:58 +02:00
2011-02-16 17:04:09 -02:00
2011-01-28 09:20:25 -02:00
2011-02-07 12:48:48 -02:00
2010-11-19 16:38:04 -02:00
2010-05-14 20:05:21 -03:00
2010-08-10 16:11:08 -03:00
2011-01-31 20:56:27 -02:00
2010-05-18 23:03:35 -03:00
2010-05-18 23:03:35 -03:00
2010-05-18 23:03:35 -03:00
2010-05-18 23:03:35 -03:00
2011-01-29 16:25:37 -02:00
2011-01-29 16:25:37 -02:00
2011-02-17 10:07:42 -02:00
2010-05-18 23:03:35 -03:00
2010-05-18 23:03:35 -03:00
2010-12-06 15:12:34 -02:00
2010-08-22 20:43:17 +02:00
2010-05-18 23:03:35 -03:00
2010-05-18 23:03:35 -03:00
2011-01-28 09:19:38 -02:00
2011-01-28 09:19:38 -02:00
2010-12-21 19:15:42 -02:00
2009-12-15 20:22:01 +01:00
2009-12-15 20:22:02 +01:00
2011-01-22 19:53:00 -02:00
2009-09-24 21:27:51 +02:00
2011-02-07 12:41:41 -02:00
2011-01-04 08:08:54 +01:00
2011-01-24 10:59:00 -02:00
2011-01-24 10:59:00 -02:00
2011-01-24 10:59:00 -02:00
2011-01-24 10:59:00 -02:00
2011-02-05 12:26:40 -02:00
2011-02-08 15:03:36 -02:00
2011-01-03 16:39:04 -02:00
2011-02-07 12:41:41 -02:00
2010-05-20 08:37:17 +02:00
2010-10-04 12:24:51 -03:00
2011-01-03 16:39:04 -02:00
2011-01-22 23:41:57 -02:00
2011-01-03 16:50:55 -02:00
2011-01-03 16:50:55 -02:00
2011-01-22 23:41:57 -02:00
2009-09-24 21:27:51 +02:00
2010-05-18 23:05:28 -03:00
2011-01-03 16:39:04 -02:00
2011-01-03 16:39:04 -02:00