]> git.baikalelectronics.ru Git - kernel.git/commit
perf sort: Compare addresses if no symbol info
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 18 Dec 2013 05:21:09 +0000 (14:21 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 18 Dec 2013 17:42:30 +0000 (14:42 -0300)
commita4176b3891122a0ed74255ffb1e833c210e77912
tree6574f69c8acf180088fcc350fa7cf755b7fba08e
parent9598f2c191fd65c5ea6916edee1a8dfec5e9d1d2
perf sort: Compare addresses if no symbol info

If a hist entry doesn't have symbol information, compare it with its
address.  Currently it only compares its level or whether it's NULL.

This can lead to an undesired result like an overhead exceeds 100%
especially when callchain accumulation is enabled by later patch.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Arun Sharma <asharma@fb.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Rodrigo Campos <rodrigo@sdfg.com.ar>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1387344086-12744-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/sort.c