Skip to content

Commit

Permalink
scripts/afl-fuzz: skip frequency tuning when unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiggers committed Sep 10, 2022
1 parent a0fead5 commit 05d7590
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/afl-fuzz/fuzz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ fi
CFLAGS+=" -DLIBDEFLATE_ENABLE_ASSERTIONS"

sudo sh -c "echo core > /proc/sys/kernel/core_pattern"
sudo sh -c "echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
sudo sh -c "echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"
fi

NPROC=$(getconf _NPROCESSORS_ONLN)

Expand Down

0 comments on commit 05d7590

Please sign in to comment.