[PATCH bpf-next 0/2] selftests/bpf: fix for veristat file/prog filters processing

Eduard Zingerman <[email protected]>
Newsgroups org.kernel.vger.bpf
Message-ID <[email protected]>
At the moment veristat filtering behaves unexpectedly for the
following filter expression:

  -f !file/prog

The expression rejects all programs with name 'prog', and all programs
in a file with name 'file'. Fix the expression to exclude only a
program 'prog' from a file 'file', also add a set of tests to exercise
filtering logic.

---
Eduard Zingerman (2):
      selftests/bpf: fix for veristat file/prog filters processing
      selftests/bpf: exercise veristat filtering logic in a selftest

 .../selftests/bpf/prog_tests/test_veristat.c       | 98 ++++++++++++++++++++++
 tools/testing/selftests/bpf/progs/veristat_bar.c   |  3 +
 tools/testing/selftests/bpf/progs/veristat_foo.c   | 31 +++++++
 tools/testing/selftests/bpf/veristat.c             | 76 +++++++++++------
 4 files changed, 181 insertions(+), 27 deletions(-)
---
base-commit: d114bb98936770c501c958bf2bc5fb6b7c0bad7b
change-id: 20260811-veristat-filter-fix-920cff2a288a
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.