Arnaldo Carvalho de Melo
9b33827de6
perf diff: Percent calcs should use double values
...
Otherwise we do integer math and the delta values round up to
multiples of 1.0%.
Also, calculate absolute values. Things look precise now:
$ perf report -i perf.data.old --sort dso,symbol | head -13
9.02% libc-2.10.1.so [.] _IO_vfprintf_internal
4.88% find [.] 0x00000000014af0
2.91% [kernel] [k] __kmalloc
2.85% [kernel] [k] ext4_htree_store_dirent
2.50% libc-2.10.1.so [.] __GI_memmove
2.44% [kernel] [k] half_md4_transform
2.43% [kernel] [k] _spin_lock
2.33% [kernel] [k] system_call
$ perf report -i perf.data --sort dso,symbol | head -13
8.55% libc-2.10.1.so [.] _IO_vfprintf_internal
3.11% [kernel] [k] __kmalloc
3.07% [kernel] [k] ext4_htree_store_dirent
2.66% find [.] 0x00000000016bcf
2.61% [kernel] [k] _atomic_dec_and_lock
2.46% [kernel] [k] half_md4_transform
2.41% libc-2.10.1.so [.] __GI_memmove
2.30% find [.] 0x00000000009219
$ perf diff | head -13
9.02% -0.47% libc-2.10.1.so [.] _IO_vfprintf_internal
2.91% +0.20% [kernel] [k] __kmalloc
2.85% +0.23% [kernel] [k] ext4_htree_store_dirent
1.99% +0.62% [kernel] [k] _atomic_dec_and_lock
2.44% +0.02% [kernel] [k] half_md4_transform
2.50% -0.09% libc-2.10.1.so [.] __GI_memmove
1.88% +0.01% [kernel] [k] __d_lookup
2.43% -0.75% [kernel] [k] _spin_lock
0.97% +0.62% [kernel] [k] path_get
1.99% -0.42% libc-2.10.1.so [.] _int_malloc
$
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1260981109-2621-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-12-16 18:29:10 +01:00
..
2009-11-24 16:37:02 +01:00
2009-08-16 10:47:47 +02:00
2009-07-01 12:49:48 +02:00
2009-10-13 11:55:31 +02:00
2009-10-23 08:22:47 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 23:06:45 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 10:47:47 +02:00
2009-11-23 21:55:20 +01:00
2009-12-14 17:34:56 +01:00
2009-10-23 08:22:47 +02:00
2009-11-16 22:05:50 +01:00
2009-11-08 18:01:34 +01:00
2009-11-08 18:01:34 +01:00
2009-06-06 20:33:43 +02:00
2009-12-16 08:53:50 +01:00
2009-12-15 20:22:04 +01:00
2009-08-16 10:47:47 +02:00
2009-09-24 21:27:51 +02:00
2009-06-06 20:33:43 +02:00
2009-12-14 16:57:15 +01:00
2009-12-12 07:42:12 +01:00
2009-07-01 12:49:48 +02:00
2009-09-24 21:27:51 +02:00
2009-12-16 18:29:10 +01:00
2009-12-16 16:53:37 +01:00
2009-06-06 20:33:43 +02:00
2009-09-24 21:27:51 +02:00
2009-12-15 20:22:04 +01:00
2009-06-27 06:06:39 +02:00
2009-12-07 08:09:29 +01:00
2009-10-15 11:35:23 +02:00
2009-12-10 08:30:28 +01:00
2009-09-24 21:27:51 +02:00
2009-08-16 10:47:47 +02:00
2009-10-16 10:34:28 +02:00
2009-12-15 20:22:05 +01:00
2009-12-15 20:22:05 +01:00
2009-12-15 20:22:01 +01:00
2009-12-15 20:22:03 +01:00
2009-08-04 11:09:56 +02:00
2009-09-24 21:27:51 +02:00
2009-08-16 10:47:47 +02:00
2009-09-24 21:27:51 +02:00
2009-12-16 08:53:50 +01:00
2009-12-16 08:53:50 +01:00
2009-06-06 20:33:43 +02:00
2009-09-24 21:27:51 +02:00
2009-12-16 16:53:37 +01:00
2009-12-16 16:53:37 +01:00
2009-07-01 12:49:48 +02:00
2009-09-24 21:27:51 +02:00
2009-12-15 20:22:03 +01:00
2009-12-15 20:22:03 +01:00
2009-12-15 20:22:01 +01:00
2009-12-15 20:22:02 +01:00
2009-10-20 03:39:21 +02:00
2009-09-24 21:27:51 +02:00
2009-12-16 08:53:50 +01:00
2009-12-16 08:53:50 +01:00
2009-12-14 16:57:17 +01:00
2009-12-14 16:57:17 +01:00
2009-11-21 17:45:59 +01:00
2009-12-10 08:30:26 +01:00
2009-12-15 10:31:32 +01:00
2009-12-07 06:31:37 +01:00
2009-12-06 18:15:02 +01:00
2009-12-15 10:31:31 +01:00
2009-09-24 21:27:51 +02:00
2009-06-07 17:31:52 +02:00
2009-11-24 16:37:03 +01:00
2009-08-16 10:47:47 +02:00
2009-09-24 21:27:51 +02:00
2009-11-24 16:37:03 +01:00