aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2020-09-30 22:49:27 +0000
committerAlexei Starovoitov <[email protected]>2020-10-01 06:21:06 +0000
commitd6b42068412bd17d94b3b7b51d3787120ba8c738 (patch)
tree5ced6a6080311879a0f2d103db5bc6e761e0f406 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parentbpf: Introduce BPF_F_PRESERVE_ELEMS for perf event array (diff)
downloadkernel-d6b42068412bd17d94b3b7b51d3787120ba8c738.tar.gz
kernel-d6b42068412bd17d94b3b7b51d3787120ba8c738.zip
selftests/bpf: Add tests for BPF_F_PRESERVE_ELEMS
Add tests for perf event array with and without BPF_F_PRESERVE_ELEMS. Add a perf event to array via fd mfd. Without BPF_F_PRESERVE_ELEMS, the perf event is removed when mfd is closed. With BPF_F_PRESERVE_ELEMS, the perf event is removed when the map is freed. Signed-off-by: Song Liu <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions