aboutsummaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/common.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2022-11-11 10:12:42 -0800
committerMartin KaFai Lau <[email protected]>2022-11-11 14:06:20 -0800
commiteb6af4ceda2d885416d8382f096030d39896aafc (patch)
tree810bfb1ca4fd663db6fc66c376a6727f4eb00096 /tools/bpf/bpftool/common.c
parent0f7dc423a5dcad488e1d8f8f34d5572600a86471 (diff)
selftests/bpf: fix veristat's singular file-or-prog filter
Fix the bug of filtering out filename too early, before we know the program name, if using unified file-or-prog filter (i.e., -f <any-glob>). Because we try to filter BPF object file early without opening and parsing it, if any_glob (file-or-prog) filter is used we have to accept any filename just to get program name, which might match any_glob. Fixes: 10b1b3f3e56a ("selftests/bpf: consolidate and improve file/prog filtering in veristat") Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions