Re: [PATCH bpf-next 01/12] bpf: Move update_prog_stats to syscall object

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

 



On Mon, Aug 28, 2023 at 10:25:38AM -0700, Alexei Starovoitov wrote:
> On Mon, Aug 28, 2023 at 12:55 AM Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
> >
> >  static void notrace __bpf_prog_exit_recur(struct bpf_prog *prog, u64 start,
> >                                           struct bpf_tramp_run_ctx *run_ctx)
> >         __releases(RCU)
> >  {
> >         bpf_reset_run_ctx(run_ctx->saved_run_ctx);
> >
> > -       update_prog_stats(prog, start);
> > +       bpf_prog_update_prog_stats(prog, start);
> 
> I bet this adds a noticeable performance regression.
> The function was inlined before and the static key made it a nop.
> Above makes it into a function call.
> Please use always_inline and move it to a header.

right.. will change

thanks,
jirka




[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