Re: [PATCH bpf-next 05/14] libbpf: unify low-level BPF_PROG_LOAD APIs into bpf_prog_load()

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

 



On Fri, Oct 29, 2021 at 09:59:32PM -0700, Andrii Nakryiko wrote:
> -int bpf_prog_load(const char *file, enum bpf_prog_type type,
> -		  struct bpf_object **pobj, int *prog_fd)
> +COMPAT_VERSION(bpf_prog_load_deprecated, bpf_prog_load, LIBBPF_0.0.1)
> +int bpf_prog_load_deprecated(const char *file, enum bpf_prog_type type,
> +			     struct bpf_object **pobj, int *prog_fd)
..
> diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map
> index 43580eb47740..b895861a13c0 100644
> --- a/tools/lib/bpf/libbpf.map
> +++ b/tools/lib/bpf/libbpf.map
> @@ -395,6 +395,8 @@ LIBBPF_0.6.0 {
>  		bpf_object__next_program;
>  		bpf_object__prev_map;
>  		bpf_object__prev_program;
> +		bpf_prog_load_deprecated;
> +		bpf_prog_load;
>  		bpf_program__insn_cnt;
>  		bpf_program__insns;
>  		btf__add_btf;

Is it really LIBBPF_0.0.1 ? or 0.6.0 ? which one is correct.
Maybe I'm misreading what COMPAT macro will do.



[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