diff options
author | 2020-07-07 18:53:18 -0700 | |
---|---|---|
committer | 2020-07-09 00:44:45 +0200 | |
commit | 6984cbc6dfa280687367b9660d8c830518239851 (patch) | |
tree | d9de3685e5905e5ecd571e3bd12c1ba1089af49e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | libbpf: Handle missing BPF_OBJ_GET_INFO_BY_FD gracefully in perf_buffer (diff) | |
download | linux-dev-6984cbc6dfa280687367b9660d8c830518239851.tar.xz linux-dev-6984cbc6dfa280687367b9660d8c830518239851.zip |
selftests/bpf: Switch perf_buffer test to tracepoint and skeleton
Switch perf_buffer test to use skeleton to avoid use of bpf_prog_load() and
make test a bit more succinct. Also switch BPF program to use tracepoint
instead of kprobe, as that allows to support older kernels, which had
tracepoint support before kprobe support in the form that libbpf expects
(i.e., libbpf expects /sys/bus/event_source/devices/kprobe/type, which doesn't
always exist on old kernels).
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200708015318.3827358-7-andriin@fb.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions