summaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/gen.c
diff options
context:
space:
mode:
authorYuntao Wang <ytcoode@gmail.com>2022-05-21 23:13:29 +0800
committerAndrii Nakryiko <andrii@kernel.org>2022-06-02 16:26:40 -0700
commiteb7b36ce47f830a01ad9405e673b563cc3638d5d (patch)
tree81dd32f5fd12abb962d0a883ff7174739be2102d /tools/bpf/bpftool/gen.c
parentf7abbecdab2191f1ba1f0876af67b715c541f9b1 (diff)
downloadlinux-eb7b36ce47f830a01ad9405e673b563cc3638d5d.tar.gz
linux-eb7b36ce47f830a01ad9405e673b563cc3638d5d.tar.xz
selftests/bpf: Fix test_run logic in fexit_stress.c
In the commit da00d2f117a0 ("bpf: Add test ops for BPF_PROG_TYPE_TRACING"), the bpf_fentry_test1 function was moved into bpf_prog_test_run_tracing(), which is the test_run function of the tracing BPF programs. Thus calling 'bpf_prog_test_run_opts(filter_fd, &topts)' will not trigger bpf_fentry_test1 function as filter_fd is a sk_filter BPF program. Fix it by replacing filter_fd with fexit_fd in the bpf_prog_test_run_opts() function. Fixes: da00d2f117a0 ("bpf: Add test ops for BPF_PROG_TYPE_TRACING") Signed-off-by: Yuntao Wang <ytcoode@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220521151329.648013-1-ytcoode@gmail.com
Diffstat (limited to 'tools/bpf/bpftool/gen.c')
0 files changed, 0 insertions, 0 deletions