Re: [FFmpeg-devel] [PATCH v2] checkasm: Test whether the native FFmpeg timers work

2024-01-15 Thread Martin Storsjö
On Thu, 11 Jan 2024, Martin Storsjö wrote: On some platforms (in particular, ARM/AArch64), the implementation of AV_READ_TIME() may use a privileged instruction - in such cases, benchmarking just fails with a SIGILL. Instead of crashing, try executing AV_READ_TIME() once within a region with th

[FFmpeg-devel] [PATCH v2] checkasm: Test whether the native FFmpeg timers work

2024-01-11 Thread Martin Storsjö
On some platforms (in particular, ARM/AArch64), the implementation of AV_READ_TIME() may use a privileged instruction - in such cases, benchmarking just fails with a SIGILL. Instead of crashing, try executing AV_READ_TIME() once within a region with the signal handler active, to allow gracefully i