diff options
author | Mykyta Yatsenko <[email protected]> | 2024-06-05 18:51:35 +0100 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-06-06 10:06:05 -0700 |
commit | 08ac454e258e38813afb906650f19acce3afd982 (patch) | |
tree | d98f6e8a40758535eb8141f2575096b939ae8628 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | b24862bac7b5db326716ad07bbff7b6ee3b09a59 (diff) |
libbpf: Auto-attach struct_ops BPF maps in BPF skeleton
Similarly to `bpf_program`, support `bpf_map` automatic attachment in
`bpf_object__attach_skeleton`. Currently only struct_ops maps could be
attached.
On bpftool side, code-generate links in skeleton struct for struct_ops maps.
Similarly to `bpf_program_skeleton`, set links in `bpf_map_skeleton`.
On libbpf side, extend `bpf_map` with new `autoattach` field to support
enabling or disabling autoattach functionality, introducing
getter/setter for this field.
`bpf_object__(attach|detach)_skeleton` is extended with
attaching/detaching struct_ops maps logic.
Signed-off-by: Mykyta Yatsenko <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions