aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2024-11-21 14:45:58 -0800
committerAlexei Starovoitov <ast@kernel.org>2024-12-02 08:41:17 -0800
commit98ebe5ef6f5c4517ba92fb3e56f95827ebea83fd (patch)
tree9726e86e333e3483dd13d25af4806df8a49bc218 /tools/perf/scripts/python/export-to-postgresql.py
parentMerge branch 'selftests-bpf-migrate-test_flow_dissector-sh-to-test_progs' (diff)
downloadwireguard-linux-98ebe5ef6f5c4517ba92fb3e56f95827ebea83fd.tar.xz
wireguard-linux-98ebe5ef6f5c4517ba92fb3e56f95827ebea83fd.zip
libbpf: don't adjust USDT semaphore address if .stapsdt.base addr is missing
USDT ELF note optionally can record an offset of .stapsdt.base, which is used to make adjustments to USDT target attach address. Currently, libbpf will do this address adjustment unconditionally if it finds .stapsdt.base ELF section in target binary. But there is a corner case where .stapsdt.base ELF section is present, but specific USDT note doesn't reference it. In such case, libbpf will basically just add base address and end up with absolutely incorrect USDT target address. This adjustment has to be done only if both .stapsdt.sema section is present and USDT note is recording a reference to it. Fixes: 74cc6311cec9 ("libbpf: Add USDT notes parsing and resolution logic") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Jiri Olsa <jolsa@kernel.org> Link: https://lore.kernel.org/r/20241121224558.796110-1-andrii@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions