diff options
author | Daniel T. Lee <[email protected]> | 2020-10-11 03:17:33 +0900 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-10-11 12:14:36 -0700 |
commit | 151936bf51afcdd6db52b3b73e339d021064b0ea (patch) | |
tree | 18efa2d681bf805b1a564eda4be8bc070fad4321 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 8ac91df6de164923c1025e340ea81d085fb4ab85 (diff) |
samples: bpf: Replace attach_tracepoint() to attach() in xdp_redirect_cpu
>From commit d7a18ea7e8b6 ("libbpf: Add generic bpf_program__attach()"),
for some BPF programs, it is now possible to attach BPF programs
with __attach() instead of explicitly calling __attach_<type>().
This commit refactors the __attach_tracepoint() with libbpf's generic
__attach() method. In addition, this refactors the logic of setting
the map FD to simplify the code. Also, the missing removal of
bpf_load.o in Makefile has been fixed.
Signed-off-by: Daniel T. Lee <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions