Patch "perf test: Fix test 21 for s390x" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
perf test: Fix test 21 for s390x
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
perf-test-fix-test-21-for-s390x.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Fri Feb 23 11:45:09 CET 2018
From: Thomas Richter <[email protected]>
Date: Thu, 23 Nov 2017 12:46:11 +0100
Subject: perf test: Fix test 21 for s390x
From: Thomas Richter <[email protected]>
[ Upstream commit 996548499df61babae5306544c7daf5fd39db31c ]
Test case 21 (Number of exit events of a simple workload) fails on s390x. The reason is the invalid sample frequency supplied for this test. On s390x the minimum sample frequency is much higher (see output of /proc/service_levels).
Supply a save sample frequency value for s390x to fix this. The value will be adjusted by the s390x CPUMF frequency convertion function to a value well below the sysctl kernel.perf_event_max_sample_rate value.
LPU-Reference: [email protected]
--- tools/perf/tests/task-exit.c | 4 ++++ 1 file changed, 4 insertions(+)
tools/perf/tests/task-exit.c +4 -0
@@ -84,7 +84,11 @@ int test__task_exit(struct test *test __ evsel =perf_evlist__first (evlist); evsel->attr.task =1 ; +#ifdef __s390x__ + evsel->attr.sample_freq =1000000 ; +#else evsel->attr.sample_freq =1 ; +#endif evsel->attr.inherit =0 ; evsel->attr.watermark =0 ; evsel->attr.wakeup_events =1 ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/perf-test-fix-test-21-for-s390x.patch queue-4.14/perf-test-shell-fix-check-open-filename-arg-using-perf-trace-on-s390x.patch