Commit cebaa52
committed
selftests/bpf: Add mprog API tests for BPF tcx opts
Add a big batch of test coverage to assert all aspects of the tcx opts
attach, detach and query API:
# ./vmtest.sh -- ./test_progs -t tc_opts
[...]
+ /etc/rcS.d/S50-startup
./test_progs -t tc_opts
[ 11.645647] bpf_testmod: loading out-of-tree module taints kernel.
[ 11.647546] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
[ 11.710400] tsc: Refined TSC clocksource calibration: 3407.988 MHz
[ 11.712352] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x311fc932722, max_idle_ns: 440795381586 ns
[ 11.715657] clocksource: Switched to clocksource tsc
torvalds#237 tc_opts_after:OK
torvalds#238 tc_opts_append:OK
torvalds#239 tc_opts_basic:OK
torvalds#240 tc_opts_before:OK
torvalds#241 tc_opts_both:OK
torvalds#242 tc_opts_chain_classic:OK
torvalds#243 tc_opts_dev_cleanup:OK
torvalds#244 tc_opts_first:OK
torvalds#245 tc_opts_invalid:OK
torvalds#246 tc_opts_last:OK
torvalds#247 tc_opts_mixed:OK
torvalds#248 tc_opts_prepend:OK
torvalds#249 tc_opts_replace:OK
torvalds#250 tc_opts_revision:OK
Summary: 14/0 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>1 parent 225c26e commit cebaa52
File tree
3 files changed
+2136
-0
lines changed- tools/testing/selftests/bpf
- prog_tests
- progs
3 files changed
+2136
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
0 commit comments