diff mbox series

[FFmpeg-devel] tests/checkasm: add exclude_guest for non-x86 linux perf

Message ID 20240409144911.118905-1-jdek@itanimul.li
State New
Headers show
Series [FFmpeg-devel] tests/checkasm: add exclude_guest for non-x86 linux perf | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

J. Dekker April 9, 2024, 2:49 p.m. UTC
exclude_guest is currently only supported on x86. However, not
specifying 'exclude_guest' implies that you can count guest events
should you run one. This creates an ABI issue whereby some non-x86
kernels require specifying exclude_guest = 1 explicitly.

Signed-off-by: J. Dekker <jdek@itanimul.li>
 tests/checkasm/checkasm.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series


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,
     printf("benchmarking with Linux Perf Monitoring API\n");