summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/lru_bug.c
diff options
context:
space:
mode:
authorJakub Sitnicki <jakub@cloudflare.com>2025-11-05 21:19:48 +0100
committerMartin KaFai Lau <martin.lau@kernel.org>2025-11-10 10:52:32 -0800
commit9ef9ac15a527739135548b87053f4646099e4bd6 (patch)
tree13667d65dedff349d46aff04abcbfeddde779d62 /tools/testing/selftests/bpf/prog_tests/lru_bug.c
parent967534e57c4439ba43b31f4af4cb85e84c86e6b7 (diff)
selftests/bpf: Dump skb metadata on verification failure
Add diagnostic output when metadata verification fails to help with troubleshooting test failures. Introduce a check_metadata() helper that prints both expected and received metadata to the BPF program's stderr stream on mismatch. The userspace test reads and dumps this stream on failure. Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com> Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://patch.msgid.link/20251105-skb-meta-rx-path-v4-11-5ceb08a9b37b@cloudflare.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/lru_bug.c')
0 files changed, 0 insertions, 0 deletions