diff options
author | He Kuang <[email protected]> | 2019-02-19 21:05:31 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-02-19 12:30:12 -0300 |
commit | 7346195e8643482968f547483e0d823ec1982fab (patch) | |
tree | 7657521e13771c3897f764a562c41d8e529a3fce /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e19a01c1438e123d169fd09376a221d844797174 (diff) |
perf report: Don't shadow inlined symbol with different addr range
We can't assume inlined symbols with the same name are equal, because
their address range may be different. This will cause the symbols with
different addresses be shadowed when adding to the hist entry, and lead
to ERANGE error when checking the symbol address during sample parse,
the addr should be within the range of [sym.start, sym.end].
The error message is like: "0x36aea60 [0x8]: failed to process type: 68".
The second parameter of symbol__new() is the length of the fake symbol
for the inline frame, which is the subtraction of the end and start
address of base_sym.
Signed-off-by: He Kuang <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Milian Wolff <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Fixes: aa441895f7b4 ("perf report: Compare symbol name for inlined frames when sorting")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions