samples/bpf: remove obsolete cgroup related tests
authorDaniel T. Lee <danieltimlee@gmail.com>
Fri, 11 Oct 2024 04:48:46 +0000 (04:48 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 11 Oct 2024 16:51:31 +0000 (09:51 -0700)
commit5ea68f0493d192610fa29fc9a7dcd9038fa8d5ee
treecd50a41d28431126b1705b3f98a00fa4a9e564e8
parent64a4658d6f766ca058e28277a4c2743525d7dc26
samples/bpf: remove obsolete cgroup related tests

This patch removes the obsolete cgroup related tests. These tests are
now redundant because their functionality is already covered by more
modern and comprehensive tests under selftests/bpf.

The following files are removed:
- test_current_task_under_cgroup: tests bpf_current_task_under_cgroup()
  to check if a task belongs to a cgroup. Already covered by
  task_under_cgroup at selftest and other cgroup ID tests.

- test_cgrp2_tc: tests bpf_skb_under_cgroup() to filter packets based
  on cgroup. This behavior is now validated by cgroup_skb_sk_lookup,
  which uses bpf_skb_cgroup_id, making 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 <danieltimlee@gmail.com>
Link: https://lore.kernel.org/r/20241011044847.51584-4-danieltimlee@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/Makefile
samples/bpf/test_cgrp2_array_pin.c [deleted file]
samples/bpf/test_cgrp2_attach.c [deleted file]
samples/bpf/test_cgrp2_tc.bpf.c [deleted file]
samples/bpf/test_cgrp2_tc.sh [deleted file]
samples/bpf/test_current_task_under_cgroup.bpf.c [deleted file]
samples/bpf/test_current_task_under_cgroup_user.c [deleted file]