]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test: Speed up some tests using perf list
authorNamhyung Kim <namhyung@kernel.org>
Wed, 16 Oct 2024 06:56:54 +0000 (23:56 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 17 Oct 2024 16:55:58 +0000 (09:55 -0700)
commit3662f82f16814636aaa152cdbd8db4b96984abea
tree652fd68de6b8b0f51f69ae737bd664ac66089435
parentfbc798316bef1b143e2cd0665cc6079529d6b0db
perf test: Speed up some tests using perf list

On my system, perf list is very slow to print the whole events.  I think
there's a performance issue in SDT and uprobes event listing.  I noticed
this issue while running perf test on x86 but it takes long to check
some CoreSight event which should be skipped quickly.

Anyway, some test uses perf list to check whether the required event is
available before running the test.  The perf list command can take an
argument to specify event class or (glob) pattern.  But glob pattern is
only to suppress output for unmatched ones after checking all events.

In this case, specifying event class is better to reduce the number of
events it checks and to avoid buggy subsystems entirely.

No functional changes intended.

Reviewed-by: James Clark <james.clark@linaro.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: German Gomez <german.gomez@arm.com>
Cc: Carsten Haitzler <carsten.haitzler@arm.com>
Cc: Leo Yan <leo.yan@arm.com>
Link: https://lore.kernel.org/r/20241016065654.269994-1-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/lib/coresight.sh
tools/perf/tests/shell/lock_contention.sh
tools/perf/tests/shell/record.sh
tools/perf/tests/shell/test_arm_coresight.sh
tools/perf/tests/shell/test_arm_coresight_disasm.sh
tools/perf/tests/shell/test_arm_spe.sh
tools/perf/tests/shell/test_arm_spe_fork.sh
tools/perf/tests/shell/test_intel_pt.sh
tools/perf/tests/shell/trace+probe_vfs_getname.sh