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)
commit2037be53b2bceac3c2e648b8ff3fd62e21af2d35
tree6574f69c8acf180088fcc350fa7cf755b7fba08e
parentfa6e8e5f7cbf85f364ebd5a90525dbbe9de2083b
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