Commit 2c1e7f7
committed
selftests/bpf: Fix testing BTF dump of struct data on 32-bit
Allow the test dumping BTF of 'struct file_operations' to succeed on 32-bit
targets by accounting for varying pointer size in the expected dump output.
This avoids failures in test_progs like:
[...]
test_btf_dump_struct_data:FAIL:file_operations unexpected file_operations: actual '(struct file_operations){
.owner = (struct module *)0xffffffff,
.fop_flags = (fop_flags_t)4294967295,
.llsee' != expected '(struct file_operations){
.owner = (struct module *)0xffffffffffffffff,
.fop_flags = (fop_flags_t)4294967295,'
[...]
torvalds#31/15 btf_dump/btf_dump: struct_data:FAIL
Fixes: 70a9241 ("selftests/bpf: Add dump type data tests to btf dump tests")
Signed-off-by: Tony Ambardar <[email protected]>1 parent 8568bad commit 2c1e7f7
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
724 | 726 | | |
725 | 727 | | |
| 728 | + | |
726 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
727 | 733 | | |
728 | 734 | | |
729 | 735 | | |
| |||
0 commit comments