Re: 'perf stat --bpf-counters test' failures

From: Namhyung Kim
Date: Fri Nov 19 2021 - 19:26:49 EST


Hello,

On Fri, Nov 19, 2021 at 6:08 AM Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
>
> On Fri, Nov 19, 2021 at 09:28:15AM -0300, Arnaldo Carvalho de Melo wrote:
> >
> > After I updated to fedora 35 I started seeing the errors below,
> > it may well not be related to that, maybe something on libbpf, haven't
> > investigated, have you seen this?
>
> yep, it seems the perf bench is broken so the counts won't correlated
> if I revert this one:
> 92723ea0f11d perf bench: Fix two memory leaks detected with ASan
>
> it works for me again.. it seems to break -t option

Right, it should free the ctx after the thread finishes the work.

Thanks,
Namhyung


>
> Sohaib, could you please check on that?
>
> [root@dell-r440-01 perf]# ./perf bench sched messaging -g 1 -l 100 -t
> # Running 'sched/messaging' benchmark:
> RRRperf: CLIENT: ready write: Bad file descriptor
> Rperf: SENDER: write: Bad file descriptor