[bpf-next 4/4] samples/bpf: remove obsolete tracing related tests

2024-10-10 Thread Daniel T. Lee
g redundant tests. [1]: https://patchwork.kernel.org/cover/13759916 Signed-off-by: Daniel T. Lee --- samples/bpf/Makefile | 11 -- samples/bpf/test_overhead_kprobe.bpf.c | 41 - samples/bpf/test_overhead_raw_tp.bpf.c | 17 -- samples/bpf/test_overhead_tp.bpf.c | 23 --- sa

[bpf-next 3/4] samples/bpf: remove obsolete cgroup related tests

2024-10-10 Thread Daniel T. Lee
this test redundant. By removing these outdated tests, this patch helps streamline and modernize the test suite, avoiding duplication of test coverage. Signed-off-by: Daniel T. Lee --- samples/bpf/Makefile | 9 - samples/bpf/test_cgrp2_array_pin.c| 106

[bpf-next 2/4] selftests/bpf: migrate sock create tests for prohibitig sockets

2024-10-10 Thread Daniel T. Lee
under selftests. This migration ensures that the socket creation blocking behavior with cgroup bpf program is properly tested within the selftest framework. Signed-off-by: Daniel T. Lee --- samples/bpf/Makefile | 2 - samples/bpf/sock_flags.bpf.c | 47

[bpf-next 1/4] selftests/bpf: migrate cgroup sock create test for setting iface/mark/prio

2024-10-10 Thread Daniel T. Lee
socket creation is properly tested. Signed-off-by: Daniel T. Lee --- samples/bpf/Makefile | 2 - samples/bpf/test_cgrp2_sock.c | 296 -- samples/bpf/test_cgrp2_sock.sh| 137 .../selftests/bpf/prog_tests/sock_creat

[bpf-next 0/4] selftests/bpf: migrate and remove cgroup/tracing related tests

2024-10-10 Thread Daniel T. Lee
s based on cgroup. This behavior is now validated by cgroup_skb_sk_lookup, which uses bpf_skb_cgroup_id, making this test redundant. Daniel T. Lee (4): selftests/bpf: migrate cgroup sock create test for setting iface/mark/prio selftests/bpf: migrate sock create tests for prohibitig sock

Re: [bpf-next 0/3] samples/bpf: Remove obsolete tracing-related tests

2024-08-13 Thread Daniel T. Lee
On Tue, Aug 13, 2024 at 6:17 AM Andrii Nakryiko wrote: > > On Sun, Aug 11, 2024 at 5:45 PM Daniel T. Lee wrote: > > > > The BPF tracing infrastructure has undergone significant evolution, > > leading to the introduction of more robust and efficient APIs. > > Howev

[bpf-next 3/3] samples/bpf: remove obsolete tracing related tests

2024-08-11 Thread Daniel T. Lee
obsolete since they have been replaced by kprobe_multi_override and probe_user from selftests/bpf respectively. This cleanup will help to streamline the testing framework by removing redundant tests. Signed-off-by: Daniel T. Lee --- samples/bpf/Makefile | 12 -- samples/

[bpf-next 2/3] selftests/bpf: add rename tracepoint bench test

2024-08-11 Thread Daniel T. Lee
me-tp'. Signed-off-by: Daniel T. Lee --- tools/testing/selftests/bpf/bench.c | 2 ++ .../testing/selftests/bpf/benchs/bench_rename.c | 16 .../selftests/bpf/benchs/run_bench_rename.sh | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/too

[bpf-next 1/3] selftests/bpf: migrate tracepoint overhead test to prog_tests

2024-08-11 Thread Daniel T. Lee
'vmlinux.h', and additional test program for tracepoint has been added. Signed-off-by: Daniel T. Lee --- .../selftests/bpf/prog_tests/test_overhead.c | 14 +- tools/testing/selftests/bpf/progs/test_overhead.c | 11 +++ 2 files changed, 20 insertions(+), 5 dele

[bpf-next 0/3] samples/bpf: Remove obsolete tracing-related tests

2024-08-11 Thread Daniel T. Lee
s. Daniel T. Lee (3): selftests/bpf: migrate tracepoint overhead test to prog_tests selftests/bpf: add rename tracepoint bench test samples/bpf: remove obsolete tracing related tests samples/bpf/Makefile | 12 - samples/bpf/test_overhead_kprobe.bpf.c