[PATCH 1/2] [GSoC] add support for New bpf command: BPF_ENABLE_STATS

Dmitry V. Levin ldv at strace.io
Sun Mar 26 11:23:31 UTC 2023


On Sat, Mar 25, 2023 at 09:28:03PM -0700, michaelkongboming at gmail.com wrote:
[...]
> diff --git a/src/xlat/bpf_commands.in b/src/xlat/bpf_commands.in
> index 07fb7905c..a48675c2e 100644
> --- a/src/xlat/bpf_commands.in
> +++ b/src/xlat/bpf_commands.in
> @@ -35,3 +35,4 @@ BPF_ENABLE_STATS 32
>  BPF_ITER_CREATE 33
>  BPF_LINK_DETACH 34
>  BPF_PROG_BIND_MAP 35
> +BPF_ENABLE_STATS 36
> \ No newline at end of file

Sorry, but BPF_ENABLE_STATS is already present in this file,
and its correct value is indeed 32 and not 36.

For this reason, I doubt the patch compiles with the current HEAD.


-- 
ldv


More information about the Strace-devel mailing list