diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/linux/bpf.txt | 3 | ||||
| -rw-r--r-- | sys/linux/test/bpf_cgroup | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt index c321b38c8..9455ba652 100644 --- a/sys/linux/bpf.txt +++ b/sys/linux/bpf.txt @@ -226,6 +226,7 @@ type bpf_prog_t[TYPE, ATTACH_TYPE, BTF_ID, PROG_FD] { fd_array ptr64[in, array[fd_bpf_map], opt] core_relos ptr64[in, array[bpf_core_relo], opt] core_relo_rec_size const[BPF_CORE_RELO_SIZE, int32] + log_true_size int32 } type bpf_prog bpf_prog_t[flags[bpf_prog_type, int32], flags[bpf_attach_type, int32], bpf_btf_id[opt], fd_bpf_prog[opt]] @@ -554,7 +555,7 @@ bpf_test_prog_arg { inctx ptr64[in, array[int8]] outctx ptr64[in, array[int8]] flags flags[bpf_prog_test_run_flags, int32] - cpu int32 + cpu const[0, int32] } bpf_prog_get_next_id_arg { diff --git a/sys/linux/test/bpf_cgroup b/sys/linux/test/bpf_cgroup index 4ff19075d..8d341eb99 100644 --- a/sys/linux/test/bpf_cgroup +++ b/sys/linux/test/bpf_cgroup @@ -6,7 +6,7 @@ r1 = write$tcp_congestion(r0, &AUTO='reno\x00', AUTO) # Now, load a BPF_PROG_TYPE_CGROUP_SYSCTL that simply returns 0, which will block all writes to /proc/sys -r2 = bpf$PROG_LOAD(AUTO, &AUTO={0x17, AUTO, &AUTO=@framed={{AUTO, AUTO, AUTO, AUTO, 0x0, AUTO, AUTO, AUTO, 0x0}, [], {AUTO, AUTO, AUTO, AUTO}}, &AUTO='GPL\x00', 0x0, 0x0, 0x0, 0x0, 0x0, "00000000000000000000000000000000", 0x0, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, 0x9c) +r2 = bpf$PROG_LOAD(AUTO, &AUTO={0x17, AUTO, &AUTO=@framed={{AUTO, AUTO, AUTO, AUTO, 0x0, AUTO, AUTO, AUTO, 0x0}, [], {AUTO, AUTO, AUTO, AUTO}}, &AUTO='GPL\x00', 0x0, 0x0, 0x0, 0x0, 0x0, "00000000000000000000000000000000", 0x0, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, 0xa0) r3 = openat(0xffffffffffffff9c, &AUTO='./cgroup\x00', 0x0, 0x0) |
