diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2020-11-27 14:48:46 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-02 08:48:13 +0100 |
commit | 9dd3e48e69155ccd3dcc81e629217900bc560118 (patch) | |
tree | cf905f4bab7799b3e7c9ee13a8f214957758522f /lib/decompress_unxz.c | |
parent | cae58721e4f8d881515b9aecc8abac1577686b87 (diff) | |
download | linux-stable-9dd3e48e69155ccd3dcc81e629217900bc560118.tar.gz linux-stable-9dd3e48e69155ccd3dcc81e629217900bc560118.tar.bz2 linux-stable-9dd3e48e69155ccd3dcc81e629217900bc560118.zip |
perf probe: Fix to die_entrypc() returns error correctly
[ Upstream commit ab4200c17ba6fe71d2da64317aae8a8aa684624c ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/decompress_unxz.c')
0 files changed, 0 insertions, 0 deletions