perf tests: Mark the shell tests not mapping perf ring buffers

Shell tests run perf, that maps ring buffers, so they take a turn using
the per user budget in kernel.perf_event_mlock_kb by default; the ones
that don't map them, like the ones running just 'perf stat', say
" (no_mlock)" in their description line and thus keep running in parallel
with the ones taking turns.

The 'perf sched stats' tests are among them, they synthesize the samples
from /proc/schedstat without mapping a ring buffer, and the tests already
marked " (exclusive)" don't need it, exclusive implies every other
requisite and keeps them running alone.

Reviewed-by: Ian Rogers <irogers@google.com>
Tested-by: Ian Rogers <irogers@google.com>
Assisted-by: LLM
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2026-10-11 19:26:14 -03:00
parent b3abf1281a
commit 1938d59c05
25 changed files with 28 additions and 25 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
# DRM PMU
# DRM PMU (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf ftrace tests
# perf ftrace tests (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf kallsyms tests
# perf kallsyms tests (no_mlock)
# SPDX-License-Identifier: GPL-2.0
err=0

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf list tests
# perf list tests (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/sh
# perf sched stats tests
# perf sched stats tests (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Add vfs_getname probe to get syscall args filenames
# Add vfs_getname probe to get syscall args filenames (no_mlock)
# SPDX-License-Identifier: GPL-2.0
# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017

View File

@ -1,5 +1,5 @@
#!/bin/bash
# 'import perf' in python
# 'import perf' in python (no_mlock)
# SPDX-License-Identifier: GPL-2.0
# Just test if we can load the python binding.
set -e

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Validate CPU and domain pairing in perf sched stats snapshots
# Validate CPU and domain pairing in perf sched stats snapshots (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf stat CSV output linter
# perf stat CSV output linter (no_mlock)
# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
# Tests various perf stat CSV output commands for the
# correct number of fields and the CSV separator set to ','.

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf stat csv summary test
# perf stat csv summary test (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf stat events uniquifying
# perf stat events uniquifying (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf stat JSON output linter
# perf stat JSON output linter (no_mlock)
# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
# Checks various perf stat JSON output commands for the
# correct number of fields.

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf stat metrics (shadow stat) test
# perf stat metrics (shadow stat) test (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf stat STD output linter
# perf stat STD output linter (no_mlock)
# SPDX-License-Identifier: GPL-2.0
# Tests various perf stat STD output commands for
# default event and metricgroup

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf stat tests
# perf stat tests (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf all metricgroups test
# perf all metricgroups test (no_mlock)
# SPDX-License-Identifier: GPL-2.0
ParanoidAndNotRoot()

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf all metrics test
# perf all metrics test (no_mlock)
# SPDX-License-Identifier: GPL-2.0
ParanoidAndNotRoot()

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf all libpfm4 events test
# perf all libpfm4 events test (no_mlock)
# SPDX-License-Identifier: GPL-2.0
if perf version --build-options | grep HAVE_LIBPFM | grep -q OFF

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf stat --bpf-counters --for-each-cgroup test
# perf stat --bpf-counters --for-each-cgroup test (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf stat metrics --for-each-cgroup test
# perf stat metrics --for-each-cgroup test (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf metrics value validation
# perf metrics value validation (no_mlock)
# SPDX-License-Identifier: GPL-2.0
shelldir=$(dirname "$0")

View File

@ -1,5 +1,5 @@
#!/bin/bash
# perf script ilist and perf list --tui test
# perf script ilist and perf list --tui test (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e

View File

@ -1,6 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# stat-cpi python test
# stat-cpi python test (no_mlock)
set -e

View File

@ -1,6 +1,9 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# perf test junit XML output validation
# perf test junit XML output validation (no_mlock)
#
# Waiving the mlock requisite this way holds only while the 'perf test'
# runs below keep picking tests that don't map ring buffers.
set -e

View File

@ -1,5 +1,5 @@
#!/bin/bash
# test perf probe of function from different CU
# test perf probe of function from different CU (no_mlock)
# SPDX-License-Identifier: GPL-2.0
set -e