about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2020-07-31 17:21:17 +0000
committerDavid Carlier <devnexen@gmail.com>2020-07-31 17:27:01 +0000
commit54d96685808bd7b47de30f5028727d94b5369962 (patch)
tree7dbd030ef698b784551762049f384b5b0f36d75d /src
parent185f4436598aacb3f25736ce6eb53309d1d9472f (diff)
downloadafl++-54d96685808bd7b47de30f5028727d94b5369962.tar.gz
Haiku set explicitly to performance.
No command line to set through afl-system-config (the only one is a GUI).
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 54db1efb..326ccc1c 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -1057,6 +1057,11 @@ int main(int argc, char **argv_orig, char **envp) {
   bind_to_free_cpu(afl);
   #endif                                                   /* HAVE_AFFINITY */
 
+  #ifdef __HAIKU__
+  /* Prioritizes performance over power saving */
+  set_scheduler_mode(SCHEDULER_MODE_LOW_LATENCY);
+  #endif
+
   afl->fsrv.trace_bits =
       afl_shm_init(&afl->shm, afl->fsrv.map_size, afl->non_instrumented_mode);