Re: [PATCH v2] perf test: perf stat tests fails on s390
From: Arnaldo Carvalho de Melo
Date: Tue Sep 08 2026 - 17:07:29 EST
On Thu, Sep 03, 2026 at 11:17:01AM -0700, Ian Rogers wrote:
> On Thu, Sep 3, 2026 at 12:36 AM Thomas Richter <tmricht@xxxxxxxxxxxxx> wrote:
> >
> > The test case 'perf stat tests' fails on s390 z/VM machines. The
> > root cause is the unsupported CPU measurement facility on z/VM.
> > Therefore the events cycles and instructions do not exist and
> > are unsupported. This cause the subtest
> > Hide zero events stat test
> > to fail.
> >
> > Output before:
> > # perf test 116
> > 116: perf stat tests : FAILED!
> >
> > === Test Summary ===
> > Passed main tests : 0
> > Passed subtests : 0
> > Skipped tests : 0
> > Failed tests : 1
> > List of failed tests:
> > 116: perf stat tests
> > #
> >
> > Output after:
> > # ./perf test 116
> > 116: perf stat tests : Ok
> >
> > === Test Summary ===
> > Passed main tests : 1
> > Passed subtests : 0
> > Skipped tests : 0
> > Failed tests : 0
> > #
> >
> > Fixes: 64724095a33f ("perf stat: Add --hide-zero-events option to suppress zero-count events")
> > Cc: Aaron Tomlin <atomlin@xxxxxxxxxxx>
> > Cc: Ian Rogers <irogers@xxxxxxxxxx>
> > Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
> > Signed-off-by: Thomas Richter <tmricht@xxxxxxxxxxxxx>
> > Reviewed-by: Aaron Tomlin <atomlin@xxxxxxxxxxx>
>
> Reviewed-by: Ian Rogers <irogers@xxxxxxxxxx>
Thanks, applied to perf-tools-next, for v7.4.
- Arnaldo