Files
kernel_google_msm-4.9/include/uapi/linux
Yonghong Song cabc4e1466 bpf: rename *_info_cnt to nr_*_info in bpf_prog_info
In uapi bpf.h, currently we have the following fields in
the struct bpf_prog_info:
	__u32 func_info_cnt;
	__u32 line_info_cnt;
	__u32 jited_line_info_cnt;
The above field names "func_info_cnt" and "line_info_cnt"
also appear in union bpf_attr for program loading.

The original intention is to keep the names the same
between bpf_prog_info and bpf_attr
so it will imply what we returned to user space will be
the same as what the user space passed to the kernel.

Such a naming convention in bpf_prog_info is not consistent
with other fields like:
        __u32 nr_jited_ksyms;
        __u32 nr_jited_func_lens;

This patch made this adjustment so in bpf_prog_info
newly introduced *_info_cnt becomes nr_*_info.

Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2025-12-21 17:51:28 +01:00
..
2020-08-21 11:01:49 +02:00
2017-05-26 15:05:08 +05:30
2016-10-03 18:52:14 +02:00
2018-03-22 09:17:38 +01:00
2016-11-03 12:43:03 -07:00
2018-05-08 21:42:04 +00:00
2018-03-22 16:11:53 -07:00
2016-09-27 21:52:00 -04:00
2016-09-27 21:52:00 -04:00
2018-04-20 08:21:04 +02:00
2019-09-03 13:44:48 -07:00
2016-09-01 16:17:11 -07:00
2017-03-29 16:54:34 -07:00
2018-02-21 15:40:42 +00:00
2016-08-02 16:53:54 +03:00