Re: [PATCH bpf-next v2 1/3] selftests/bpf: fix for veristat file/prog filters processing

[email protected]
Newsgroups org.kernel.vger.bpf
Message-ID <ec185c8e45f1b63372288201a550c1f921d3ce86ccad25cc52cbda221620499e@mail.kernel.org>
> selftests/bpf: fix for veristat file/prog filters processing
>
> 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'. This commit fixes the expression to
> exclude only a program 'prog' from a file 'file'. Additionally,
> the commit makes empty filters like '-f ""' or '-f "/"' and error.

This isn't a bug, but should "and error" here read "an error"? It's the
sentence that documents the new -EINVAL for empty filters.


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/31569226955
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.