Re: [PATCH bpf-next v4 0/2] perf: stop using deprecated bpf APIs

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

 



Em Sat, Jan 22, 2022 at 05:01:50PM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Thu, Jan 20, 2022 at 02:58:29PM -0800, Andrii Nakryiko escreveu:
> > On Wed, Jan 19, 2022 at 3:09 PM Christy Lee <christylee@xxxxxx> wrote:
> > >
> > > libbpf's bpf_load_program() and bpf__object_next() APIs are deprecated.
> > > remove perf's usage of these deprecated functions. After this patch
> > > set, the only remaining libbpf deprecated APIs in perf would be
> > > bpf_program__set_prep() and bpf_program__nth_fd().
> > >
> > 
> > Arnaldo, do you want to take this through perf tree or should we apply
> > this to bpf-next? If the latter, can you give your ack as well?
> > Thanks!
> 
> I'd love to be able to test it with the containers, after I push the
> current batch to Linus.

I just looked at it, simple enough, applied.

- Arnaldo
 
> - Arnaldo
>  
> > > Changelog:
> > > ----------
> > > v3 -> v4:
> > > * Fixed commit title
> > > * Added weak definition for deprecated function
> > >
> > > v2 -> v3:
> > > https://lore.kernel.org/all/20220106200032.3067127-1-christylee@xxxxxx/
> > >
> > > Patch 2/2:
> > > Fixed commit message to use upstream perf
> > >
> > > v1 -> v2:
> > > https://lore.kernel.org/all/20211216222108.110518-1-christylee@xxxxxx/
> > >
> > > Patch 1/2:
> > > Added missing commit message
> > >
> > > Patch 2/2:
> > > Added more details to commit message and added steps to reproduce
> > > original test case.
> > >
> > > Christy Lee (2):
> > >   perf: stop using deprecated bpf_load_program() API
> > >   perf: stop using deprecated bpf_object__next() API
> > >
> > >  tools/perf/tests/bpf.c       | 14 ++-----
> > >  tools/perf/util/bpf-event.c  | 16 ++++++++
> > >  tools/perf/util/bpf-loader.c | 72 +++++++++++++++++++++++++++---------
> > >  tools/perf/util/bpf-loader.h |  1 +
> > >  4 files changed, 75 insertions(+), 28 deletions(-)
> > >
> > > --
> > > 2.30.2
> 
> -- 
> 
> - Arnaldo

-- 

- Arnaldo



[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