[PATCH 2/2] [GSoC] add bpf attr data for new bpf command BPF_STATS_ENABLED in linux 6.2

Dmitry V. Levin ldv at strace.io
Sun Mar 26 11:24:22 UTC 2023


On Sat, Mar 25, 2023 at 09:28:04PM -0700, michaelkongboming at gmail.com wrote:
> From: bigjr-mkkong <michaelkongboming at gmail.com>
> 
> ---
> Added attribute field for BPF_ENABLE_STATS
> This is my micro-proj for GSoC 2023
>  tests/bpf.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/bpf.c b/tests/bpf.c
> index 76a7698c5..7fcbadd02 100644
> --- a/tests/bpf.c
> +++ b/tests/bpf.c
> @@ -88,6 +88,7 @@ union bpf_attr_data {
>  	BPF_ATTR_DATA_FIELD(BPF_LINK_CREATE);
>  	BPF_ATTR_DATA_FIELD(BPF_LINK_UPDATE);
>  	BPF_ATTR_DATA_FIELD(BPF_LINK_GET_FD_BY_ID);
> +	BPF_ATTR_DATA_FIELD(BPF_ENABLE_STATS);
>  	char char_data[256];
>  };
> 

Is there any particular reason to have this change as a separate commit?


-- 
ldv


More information about the Strace-devel mailing list