perf callchain: Compare dsos (as well) for CCKEY_FUNCTION
authorRavi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Thu, 5 Oct 2017 09:12:34 +0000 (14:42 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Oct 2017 13:52:54 +0000 (10:52 -0300)
commitc1fbc0cf81f1c464f5fda322c1104d4bb1da6711
tree06b54ec9f8dee12c4f25efe4306335e9047ebdb9
parent1addcd55bc54d669000221b41e379458ff3e6747
perf callchain: Compare dsos (as well) for CCKEY_FUNCTION

Two functions from different binaries can have same start address. Thus,
comparing only start address in match_chain() leads to inconsistent
callchains. Fix this by adding a check for dsos as well.

Ex, https://www.spinics.net/lists/linux-perf-users/msg04067.html

Reported-by: Alexander Pozdneev <pozdneyev@gmail.com>
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Krister Johansen <kjlx@templeofstupid.com>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yao Jin <yao.jin@linux.intel.com>
Cc: zhangmengting@huawei.com
Link: http://lkml.kernel.org/r/20171005091234.5874-1-ravi.bangoria@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/callchain.c