mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
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>
This commit is contained in:
parent
89a9042291
commit
985fdf8e3d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user