diff options
author | Alan Maguire <[email protected]> | 2024-06-20 10:17:32 +0100 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-06-21 14:45:07 -0700 |
commit | 46fb0b62ea29c0dbcb3e44f1d67aafe79bc6e045 (patch) | |
tree | ee099472310e53d874ad531b3747d3ea760a1293 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 8646db238997df36c6ad71a9d7e0b52ceee221b2 (diff) |
kbuild,bpf: Add module-specific pahole flags for distilled base BTF
Support creation of module BTF along with distilled base BTF;
the latter is stored in a .BTF.base ELF section and supplements
split BTF references to base BTF with information about base types,
allowing for later relocation of split BTF with a (possibly
changed) base. resolve_btfids detects the presence of a .BTF.base
section and will use it instead of the base BTF it is passed in
BTF id resolution.
Modules will be built with a distilled .BTF.base section for external
module build, i.e.
make -C. -M=path2/module
...while in-tree module build as part of a normal kernel build will
not generate distilled base BTF; this is because in-tree modules
change with the kernel and do not require BTF relocation for the
running vmlinux.
Signed-off-by: Alan Maguire <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions