diff options
author | 2023-08-01 22:26:21 +0800 | |
---|---|---|
committer | 2023-08-02 14:21:12 -0700 | |
commit | 7fedbf32fcc779a07abdba1347e759ad52bded2c (patch) | |
tree | 48d166244fee603c968d23d1c6ddc55767a29566 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | bpf, xdp: Add tracepoint to xdp attaching failure (diff) | |
download | wireguard-linux-7fedbf32fcc779a07abdba1347e759ad52bded2c.tar.xz wireguard-linux-7fedbf32fcc779a07abdba1347e759ad52bded2c.zip |
selftests/bpf: Add testcase for xdp attaching failure tracepoint
Add a test case for the tracepoint of xdp attaching failure by bpf
tracepoint when attach XDP to a device with invalid flags option.
The bpf tracepoint retrieves error message from the tracepoint, and
then put the error message to a perf buffer. The testing code receives
error message from perf buffer, and then ASSERT "Invalid XDP flags for
BPF link attachment".
Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
Link: https://lore.kernel.org/r/20230801142621.7925-3-hffilwlqm@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions