perf test: Fix test 21 for s390x
authorThomas Richter <[email protected]>
Thu, 23 Nov 2017 11:46:11 +0000 (12:46 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 28 Nov 2017 17:28:26 +0000 (14:28 -0300)
commit996548499df61babae5306544c7daf5fd39db31c
tree388286f7e6c7b139b16c42c9b95ac630637caee5
parent321a7c35c90cc834851ceda18a8ee18f1d032b92
perf test: Fix test 21 for s390x

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.

Signed-off-by: Thomas Richter <[email protected]>
Reviewed-by: Hendrik Brueckner <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
LPU-Reference: 20171123114611[email protected]
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/tests/task-exit.c