Haiku set explicitly to performance.

No command line to set through afl-system-config (the only one is a GUI).
This commit is contained in:
David Carlier
2020-07-31 17:21:17 +00:00
parent 185f443659
commit 54d9668580
2 changed files with 10 additions and 0 deletions

View File

@ -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);