Re: [PATCH bpf-next v4 16/21] tools/libbpf: add bpf_iter support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 09, 2020 at 10:59:17AM -0700, Yonghong Song wrote:
> @@ -6891,6 +6897,7 @@ static int bpf_object__collect_st_ops_relos(struct bpf_object *obj,
>  
>  #define BTF_TRACE_PREFIX "btf_trace_"
>  #define BTF_LSM_PREFIX "bpf_lsm_"
> +#define BTF_ITER_PREFIX "__bpf_iter__"
>  #define BTF_MAX_NAME_SIZE 128

In the kernel source the prefix doesn't stand out, but on libbpf side it looks
inconsistent. May be drop __ prefix and keep one _ in the suffix?



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux