diff options
author | Leon Hwang <hffilwlqm@gmail.com> | 2023-08-01 22:26:21 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-08-02 14:21:12 -0700 |
commit | 7fedbf32fcc779a07abdba1347e759ad52bded2c (patch) | |
tree | 48d166244fee603c968d23d1c6ddc55767a29566 /sound/soc/google/chv3-i2s.c | |
parent | bf4ea1d0b2cb2251f9e5619c81daa98591087c33 (diff) | |
download | lwn-7fedbf32fcc779a07abdba1347e759ad52bded2c.tar.gz lwn-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 'sound/soc/google/chv3-i2s.c')
0 files changed, 0 insertions, 0 deletions