]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test: Skip sched stats test for !root
authorNamhyung Kim <namhyung@kernel.org>
Sun, 5 Apr 2026 05:16:44 +0000 (22:16 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 6 Apr 2026 06:27:51 +0000 (23:27 -0700)
commitdc647eb00969cd213c84d6caee90c480317e857d
tree979d809c7e3dfec5faaec65a66111a218f931faf
parentc9ef786c0970991578397043f1c819229e2b7197
perf test: Skip sched stats test for !root

Running perf sched stats requires root and it fails to open the
schedstat file for regular users.  Let's skip the test.

  $ perf sched stats true
  Failed to open /proc/sys/kernel/sched_schedstats

Reviewed-by: Ian Rogers <irogers@google.com>
Tested-by: Swapnil Sapkal <swapnil.sapkal@amd.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/perf_sched_stats.sh