[FFmpeg-devel] [PATCH 6/6] configure: enable Linux perf on RISC-V by default

Rémi Denis-Courmont remi at remlab.net
Wed Jul 19 22:55:40 EEST 2023


Now that checkasm can automatically fall back to RDCYCLE, it is safe to
enable this for forward compatibility with kernel versions mitigating
the "Cycle Drift" side channel attack.

Where available, this should also reduce measurement noise, since
kernel and hypervisor cycles should no longer be counted.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index b018abf139..c60e8d3438 100755
--- a/configure
+++ b/configure
@@ -5753,7 +5753,7 @@ case $target_os in
         ;;
     linux)
         enable section_data_rel_ro
-        enabled_any arm aarch64 && enable_weak linux_perf
+        enabled_any arm aarch64 riscv && enable_weak linux_perf
         ;;
     irix*)
         target_os=irix
-- 
2.40.1



More information about the ffmpeg-devel mailing list