diff options
| author | Leon Hwang <[email protected]> | 2023-08-01 14:26:21 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-08-02 21:21:12 +0000 |
| commit | 7fedbf32fcc779a07abdba1347e759ad52bded2c (patch) | |
| tree | 48d166244fee603c968d23d1c6ddc55767a29566 /drivers/net/hyperv/hyperv_net.h | |
| parent | bpf, xdp: Add tracepoint to xdp attaching failure (diff) | |
| download | kernel-7fedbf32fcc779a07abdba1347e759ad52bded2c.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
0 files changed, 0 insertions, 0 deletions
