diff options
author | 2020-12-03 12:46:30 -0800 | |
---|---|---|
committer | 2020-12-03 17:38:21 -0800 | |
commit | 290248a5b7d829871b3ea3c62578613a580a1744 (patch) | |
tree | 0aa6d260cddaf939128e4645fdc695fcfa4ce0e0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Remove hard-coded btf_vmlinux assumption from BPF verifier (diff) | |
download | wireguard-linux-290248a5b7d829871b3ea3c62578613a580a1744.tar.xz wireguard-linux-290248a5b7d829871b3ea3c62578613a580a1744.zip |
bpf: Allow to specify kernel module BTFs when attaching BPF programs
Add ability for user-space programs to specify non-vmlinux BTF when attaching
BTF-powered BPF programs: raw_tp, fentry/fexit/fmod_ret, LSM, etc. For this,
attach_prog_fd (now with the alias name attach_btf_obj_fd) should specify FD
of a module or vmlinux BTF object. For backwards compatibility reasons,
0 denotes vmlinux BTF. Only kernel BTF (vmlinux or module) can be specified.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201203204634.1325171-11-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions