]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test: Extra verbosity and hypervisor skip for tpebs test
authorIan Rogers <irogers@google.com>
Thu, 30 Jan 2025 17:01:35 +0000 (09:01 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 4 Feb 2025 03:45:50 +0000 (19:45 -0800)
commitbb4b8f9697931a2f1d079c3ab7d9ee41d792bd68
tree046fa28eae0f91a45721843a8e28426571d3c3a5
parent4c4c0724d6521a8092b7c16f8f210c5869d95b17
perf test: Extra verbosity and hypervisor skip for tpebs test

When not running as root and with higher perf event paranoia values
the perf record forked by TPEBS can fail to attach to the process. Skip
the test in these scenarios.

Intel TPEBS test skips on non-Intel CPUs. On Intel CPUs under a
hypervisor the cache-misses event may not be present or precise. Skip
the test under this condition.

Refactor the output code to be placed in a file so that on a signal
the file can be dumped. This was necessary to catch the issue above as
the failing perf record command would fail without output.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Falcon <thomas.falcon@intel.com>
Cc: Weilin Wang <weilin.wang@intel.com>
Cc: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250130170135.5817-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/test_stat_intel_tpebs.sh