]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test: Be more tolerant of metricgroup failures
authorIan Rogers <irogers@google.com>
Thu, 2 May 2024 22:31:15 +0000 (15:31 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 24 Sep 2024 17:46:24 +0000 (10:46 -0700)
commitc940a66b3ac930227df0ab6e01f84bea1afa6c3f
tree7312a8c4cad39b3130faf17a6de72bafdf463dc0
parent1de5b5dcb8353f36581c963df2d359a5f151a0be
perf test: Be more tolerant of metricgroup failures

Previously "set -e" meant any non-zero exit code from perf stat would
cause a test failure. As a non-zero exit happens when there aren't
sufficient permissions, check for this case and make the exit code
2/skip for it.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Veronika Molnarova <vmolnaro@redhat.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Link: https://lore.kernel.org/r/20240502223115.2357499-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/stat_all_metricgroups.sh