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

Martin Storsjö martin at martin.st
Mon Jan 15 16:21:45 EET 2024


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 the signal handler active, to allow gracefully
> informing the user about the issue.
>
> This matches the dav1d checkasm commit
> 95a192549a448b70d9542e840c4e34b60d09b093.
> ---
> Reworded the commit message and the printed warning message, as
> the actual type of the timer is undefined and varies across
> platforms.
> ---
> tests/checkasm/checkasm.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)

Will apply soon.

// Martin


More information about the ffmpeg-devel mailing list