Commit 9efc41f
selftests/bpf: Add test to access union argument in tracing program
Adding verifier test for accessing union argument in tracing programs.
The test program loads 1st argument of bpf_fentry_test11 function
which is union and checks that verifier allows that.
cd tools/testing/selftests/bpf
./test_progs -t verifier_btf_ctx
501/7 verifier_btf_ctx_access/btf_ctx_access union arg accept:OK
501 verifier_btf_ctx_access:OK
Summary: 1/7 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Leon Hwang <[email protected]>1 parent 98e56f5 commit 9efc41f
File tree
2 files changed
+25
-1
lines changed- net/bpf
- tools/testing/selftests/bpf/progs
2 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
577 | 587 | | |
578 | 588 | | |
579 | 589 | | |
| |||
688 | 698 | | |
689 | 699 | | |
690 | 700 | | |
| 701 | + | |
691 | 702 | | |
692 | 703 | | |
693 | 704 | | |
| |||
705 | 716 | | |
706 | 717 | | |
707 | 718 | | |
708 | | - | |
| 719 | + | |
| 720 | + | |
709 | 721 | | |
710 | 722 | | |
711 | 723 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
80 | 92 | | |
0 commit comments