diff options
| author | Leon Hwang <[email protected]> | 2023-08-01 22:26:21 +0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-08-02 14:21:12 -0700 |
| commit | 7fedbf32fcc779a07abdba1347e759ad52bded2c (patch) | |
| tree | 48d166244fee603c968d23d1c6ddc55767a29566 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | bf4ea1d0b2cb2251f9e5619c81daa98591087c33 (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions