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

Rémi Denis-Courmont remi at remlab.net
Fri Jul 14 21:28:35 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 0ab0761011..3be074e15b 100755
--- a/configure
+++ b/configure
@@ -5754,7 +5754,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