aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Dekker <jdek@itanimul.li>2024-04-09 16:49:11 +0200
committerJ. Dekker <jdek@itanimul.li>2024-04-10 13:37:40 +0200
commit985fdf8e3d616633f1dc13920491bab45b1aa758 (patch)
tree521dac8af476e8214b8b0d1bfd8968babdd9d5bf
parent89a9042291e2f54be98e54e8e8fa50ee3fe7d1a6 (diff)
downloadffmpeg-985fdf8e3d616633f1dc13920491bab45b1aa758.tar.gz
tests/checkasm: add exclude_guest for non-x86 linux perf
The exclude_guest option only has an effect on x86. Omitting 'exclude_guest' defaults to zero which implies that you can count guest events should you run one. Some non-x86 kernels just ignore it, while others (e.g. the Asahi Linux kernels) require the user to explicitly set the option to 1, i.e. the only behaviour that makes sense when counting guest events isn't supported. Signed-off-by: J. Dekker <jdek@itanimul.li>
-rw-r--r--tests/checkasm/checkasm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index dcd2fd6957..8be6cb0f55 100644
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -742,6 +742,9 @@ static int bench_init_linux(void)
.disabled = 1, // start counting only on demand
.exclude_kernel = 1,
.exclude_hv = 1,
+#if !ARCH_X86
+ .exclude_guest = 1,
+#endif
};
printf("benchmarking with Linux Perf Monitoring API\n");