perf test: Avoid system wide when not privileged
authorIan Rogers <irogers@google.com>
Sat, 30 Sep 2023 06:02:06 +0000 (23:02 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 5 Oct 2023 05:28:07 +0000 (22:28 -0700)
commit0ddce121b038c553d6ec103f3b9fc399f99945e9
tree6ebabb024002076689d61e5f388daeb6bf8a20ed
parentbe7a4caa7c45bd4b0a39cdb260905b52a87c8688
perf test: Avoid system wide when not privileged

Switch the test program to sleep that makes more sense for system wide
events. Only enable system wide when root or not paranoid. This avoids
failures under some testing conditions like ARM cloud.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20230930060206.2353141-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/stat_all_metricgroups.sh