aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-09-03 13:35:30 -0700
committerAlexei Starovoitov <[email protected]>2020-09-03 17:14:39 -0700
commitc112239272c6bacf7fcd0a0dc71999ad8eb1c55c (patch)
treea9c9783cbd84642ce17b548c58bf1416385fa7d6 /tools/perf/scripts/python/bin
parent0201c575831171292489f14a8b6f79f98936b4d1 (diff)
libbpf: Parse multi-function sections into multiple BPF programs
Teach libbpf how to parse code sections into potentially multiple bpf_program instances, based on ELF FUNC symbols. Each BPF program will keep track of its position within containing ELF section for translating section instruction offsets into program instruction offsets: regardless of BPF program's location in ELF section, it's first instruction is always at local instruction offset 0, so when libbpf is working with relocations (which use section-based instruction offsets) this is critical to make proper translations. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions