diff options
author | Masami Hiramatsu <mhriamat@kernel.org> | 2021-07-04 00:35:18 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-07-07 10:28:07 -0300 |
commit | eb4717f733b5941a29ea4e0aec3227a0e0770487 (patch) | |
tree | 4820e2ef9e5cebee999c6ca8b5122801713392ea /include/linux/scmi_protocol.h | |
parent | tools headers UAPI: Sync files changed by the quotactl_fd new syscall (diff) | |
download | linux-dev-eb4717f733b5941a29ea4e0aec3227a0e0770487.tar.xz linux-dev-eb4717f733b5941a29ea4e0aec3227a0e0770487.zip |
perf probe: Fix debuginfo__new() to enable build-id based debuginfo
Fix debuginfo__new() to set the build-id to dso before
dso__read_binary_type_filename() so that it can find
DSO_BINARY_TYPE__BUILDID_DEBUGINFO debuginfo correctly.
However, this may not change the result, because elfutils (libdwfl) has
its own debuginfo finder. With/without this patch, the perf probe
correctly find the debuginfo file.
This is just a failsafe and keep code's sanity (if you use
dso__read_binary_type_filename(), you must set the build-id to the dso.)
Reported-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Masami Hiramatsu <mhriamat@kernel.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Stefan Liebler <stli@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Link: http://lore.kernel.org/lkml/162532651863.393143.11692691321219235810.stgit@devnote2
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'include/linux/scmi_protocol.h')
0 files changed, 0 insertions, 0 deletions