diff options
| author | van Hauser <vh@thc.org> | 2020-08-12 14:14:44 +0200 |
|---|---|---|
| committer | van Hauser <vh@thc.org> | 2020-08-12 14:14:44 +0200 |
| commit | b38837f4ff8f2e52597b7908b9226500e5c61933 (patch) | |
| tree | dedf9bafaf8d176bc07912a2f512187af9048f36 /src/afl-forkserver.c | |
| parent | c25479264d8334abcd9850e3d2c6a0200220b625 (diff) | |
| download | afl++-b38837f4ff8f2e52597b7908b9226500e5c61933.tar.gz | |
setting attribute hot intelligently gives 0.5% speed
Diffstat (limited to 'src/afl-forkserver.c')
| -rw-r--r-- | src/afl-forkserver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c index 1ececf27..6819fc8a 100644 --- a/src/afl-forkserver.c +++ b/src/afl-forkserver.c @@ -122,7 +122,7 @@ void afl_fsrv_init_dup(afl_forkserver_t *fsrv_to, afl_forkserver_t *from) { Returns the time passed to read. If the wait times out, returns timeout_ms + 1; Returns 0 if an error occurred (fd closed, signal, ...); */ -static u32 read_s32_timed(s32 fd, s32 *buf, u32 timeout_ms, +static u32 __attribute__ ((hot)) read_s32_timed(s32 fd, s32 *buf, u32 timeout_ms, volatile u8 *stop_soon_p) { fd_set readfds; @@ -322,7 +322,7 @@ static void report_error_and_exit(int error) { cloning a stopped child. So, we just execute once, and then send commands through a pipe. The other part of this logic is in afl-as.h / llvm_mode */ -void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv, +void __attribute__ ((hot)) afl_fsrv_start(afl_forkserver_t *fsrv, char **argv, volatile u8 *stop_soon_p, u8 debug_child_output) { int st_pipe[2], ctl_pipe[2]; |
