diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2020-11-27 06:48:46 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-11-27 18:33:17 +0100 |
commit | ab4200c17ba6fe71d2da64317aae8a8aa684624c (patch) | |
tree | 1d6bafbb6aad7604927d5eca6c1c9b323b2ac6a9 /tools/perf/builtin-top.c | |
parent | perf stat: Use proper cpu for shadow stats (diff) | |
download | linux-ab4200c17ba6fe71d2da64317aae8a8aa684624c.tar.xz linux-ab4200c17ba6fe71d2da64317aae8a8aa684624c.zip |
perf probe: Fix to die_entrypc() returns error correctly
Fix die_entrypc() to return error correctly if the DIE has no
DW_AT_ranges attribute. Since dwarf_ranges() will treat the case as an
empty ranges and return 0, we have to check it by ourselves.
Fixes: 91e2f539eeda ("perf probe: Fix to show function entry line as probe-able")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Link: http://lore.kernel.org/lkml/160645612634.2824037.5284932731175079426.stgit@devnote2
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-top.c')
0 files changed, 0 insertions, 0 deletions