2022-12-02 20:01:36

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: tmp.perf/core segfaulting on metrics test

While trying to get back at processing patches for Linux 6.2, what I
have at tmp.perf/core branch is failing like below, can someone try to
help in diagnosing this?

People really should try to run 'perf test' before pushing things
upstream, but maybe this is related to a recent merge with
torvalds/master, I'll check, but as a heads up and if someone wants to
help...

[root@quaco ~]# perf test 99
99: perf all metricgroups test : FAILED!
[root@quaco ~]# perf test -v 99
99: perf all metricgroups test :
--- start ---
test child forked, pid 1494614
Testing Backend

Performance counter stats for 'system wide':

9,978,757 CPU_CLK_UNHALTED.THREAD_ANY # 56.7 % tma_core_bound
/home/acme/libexec/perf-core/tests/shell/stat_all_metricgroups.sh: line 7: 1494617 Segmentation fault (core dumped) perf stat -M "$m" -a true
test child finished with -1
---- end ----
perf all metricgroups test: FAILED!
[root@quaco ~]#


--

- Arnaldo


2022-12-02 20:47:12

by Namhyung Kim

[permalink] [raw]
Subject: Re: tmp.perf/core segfaulting on metrics test

Hi Arnaldo,

On Fri, Dec 2, 2022 at 11:11 AM Arnaldo Carvalho de Melo
<[email protected]> wrote:
>
> While trying to get back at processing patches for Linux 6.2, what I
> have at tmp.perf/core branch is failing like below, can someone try to
> help in diagnosing this?

I think you missed this

https://lore.kernel.org/r/[email protected]

>
> People really should try to run 'perf test' before pushing things
> upstream, but maybe this is related to a recent merge with
> torvalds/master, I'll check, but as a heads up and if someone wants to
> help...

Right, but the metric test is special since it contains hardware-
specific metrics. But I'll double check with perf test before sending
patches.

Thanks,
Namhyung


>
> [root@quaco ~]# perf test 99
> 99: perf all metricgroups test : FAILED!
> [root@quaco ~]# perf test -v 99
> 99: perf all metricgroups test :
> --- start ---
> test child forked, pid 1494614
> Testing Backend
>
> Performance counter stats for 'system wide':
>
> 9,978,757 CPU_CLK_UNHALTED.THREAD_ANY # 56.7 % tma_core_bound
> /home/acme/libexec/perf-core/tests/shell/stat_all_metricgroups.sh: line 7: 1494617 Segmentation fault (core dumped) perf stat -M "$m" -a true
> test child finished with -1
> ---- end ----
> perf all metricgroups test: FAILED!
> [root@quaco ~]#
>
>
> --
>
> - Arnaldo