perf test: Use cycles event in perf record test for leader_sampling
authorThomas Richter <tmricht@linux.ibm.com>
Fri, 31 Jan 2025 10:27:56 +0000 (11:27 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 4 Feb 2025 19:36:14 +0000 (11:36 -0800)
commit90d97674d4ad0166c038ca9a672c6e79e95d6d3c
treef32058fb97c632fd6c1fc9c6ef37d3925b95cdd3
parent859199431d768091ff60351319a1c2886c18b592
perf test: Use cycles event in perf record test for leader_sampling

On s390 the event instructions can not be used for recording.
This event is only supported by perf stat.

Change the event from instructions to cycles in subtest
test_leader_sampling.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Suggested-by: James Clark <james.clark@linaro.org>
Reviewed-by: James Clark <james.clark@linaro.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20250131102756.4185235-3-tmricht@linux.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/record.sh