Commit 88aa9c3
committed
bpf: Fix using struct btf_ptr on 32-bit
struct btf_ptr {
void *ptr;
__u32 type_id;
__u32 flags;
};
test_task_btf:PASS:bpf_iter_task_btf__open_and_load 0 nsec
do_btf_read:PASS:attach_iter 0 nsec
do_btf_read:PASS:create_iter 0 nsec
do_btf_read:PASS:read 0 nsec
do_btf_read:FAIL:check for btf representation of task_struct in iter data unexpected check for btf representation of task_struct in iter data: '(struct task_struct)' is not a substring of 'Raw BTF task
'
test_task_btf:FAIL:no task iteration, did BPF program run? unexpected no task iteration, did BPF program run?: actual 0 == expected 0
torvalds#16/13 bpf_iter/task_btf:FAIL
static struct btf_ptr ptr = {};
long ret;
[...]
ret = bpf_seq_printf_btf(seq, &ptr, sizeof(ptr), 0);
--> -EINVAL
Signed-off-by: Tony Ambardar <tony.ambardar@gmail.com>1 parent ed29d0c commit 88aa9c3
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7526 | 7526 | | |
7527 | 7527 | | |
7528 | 7528 | | |
7529 | | - | |
| 7529 | + | |
7530 | 7530 | | |
7531 | 7531 | | |
7532 | 7532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7526 | 7526 | | |
7527 | 7527 | | |
7528 | 7528 | | |
7529 | | - | |
| 7529 | + | |
7530 | 7530 | | |
7531 | 7531 | | |
7532 | 7532 | | |
| |||
0 commit comments