Re: [PATCH] perf test arm-spe: Check if perf-record hangs when recording workload with forks

From: Leo Yan
Date: Fri May 27 2022 - 02:38:38 EST


On Fri, May 13, 2022 at 02:03:52PM +0100, James Clark wrote:
>
>
> On 28/02/2022 16:56, German Gomez wrote:
> > Add shell test to check if perf-record hangs when recording an arm_spe
> > event with forks.
> >
> > The test FAILS if the Kernel is not patched with Commit 961c391217 ("perf:
> > Always wake the parent event").
> >
> > Unpatched Kernel:
> >
> > $ perf test -v 90
> > 90: Check Arm SPE doesn't hang when there are forks
> > --- start ---
> > test child forked, pid 14232
> > Recording workload with fork
> > Log lines = 90 /tmp/__perf_test.stderr.0Nu0U
> > Log lines after 1 second = 90 /tmp/__perf_test.stderr.0Nu0U
> > SPE hang test: FAIL
> > test child finished with -1
> > ---- end ----
> > Check Arm SPE trace data in workload with forks: FAILED!
> >
> > Patched Kernel:
> >
> > $ perf test -v 90
> > 90: Check Arm SPE doesn't hang when there are forks
> > --- start ---
> > test child forked, pid 2930
> > Compiling test program...
> > Recording workload...
> > Log lines = 478 /tmp/__perf_test.log.026AI
> > Log lines after 1 second = 557 /tmp/__perf_test.log.026AI
> > SPE hang test: PASS
> > Cleaning up files...
> > test child finished with 0
> > ---- end ----
> > Check Arm SPE trace data in workload with forks: Ok
> >
> > Signed-off-by: German Gomez <german.gomez@xxxxxxx>
>
> Reviewed-by: James Clark <james.clark@xxxxxxx>

Thanks for review and popping up this patch, James. LGTM:

Reviewed-by: Leo Yan <leo.yan@xxxxxxxxxx>