39f61ef513
BPF_PROG_QUERY was introduced in Linux commit v4.15-rc1~84^2~558^2~6. * xlat/bpf_commands.in (BPF_PROG_QUERY): New constant. * xlat/bpf_query_flags.in: New file. * bpf.c: Include it. (DECL_BPF_CMD_DECODER): Add priv argument for passing tcb private data. (BEGIN_BPF_CMD_DECODER(BPF_PROG_QUERY)): New function. (SYS_FUNC(bpf)) <bpf_cmd_decoders>: Add BPF_PROG_QUERY entry. (SYS_FUNC(bpf)): Fetch buf on entering and exiting, pass buf on exiting, retrieve private data on exiting, pass it to decoder as well, explicitly rework rc handling logic for size argument printing. * bpf_attr.h (struct BPF_PROG_QUERY_struct): New structure declaration. (BPF_PROG_QUERY_struct_size, expected_BPF_PROG_QUERY_struct_size): New macro. * tests/bpf.c: Add checks for BPF_PROG_QUERY command.
2 lines
32 B
Plaintext
2 lines
32 B
Plaintext
BPF_F_QUERY_EFFECTIVE (1U << 0)
|