diff options
| author | Alexander Popov <alex.popov@linux.com> | 2018-09-24 15:26:08 +0300 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-09-24 14:55:35 +0200 |
| commit | 0e7547d77c52f0ec26e6e95dc06baa6154bc81e4 (patch) | |
| tree | c84c86326dbd6533456b78e61bab5c6eb24d1f26 /executor/common_linux.h | |
| parent | 2f485cdfa912e521007b14e6198d1bda25cdb074 (diff) | |
executor: make the debug output useful for race condition debugging
Sometimes race conditions are reproduced by syz-execprog and are not
reproduced by the programs generated with syz-prog2c. In such cases
it's very helpful to know when exactly the fuzzing syscalls are executed.
Unfortunately, adding timestamps to the output of the original 'debug'
mode doesn't work. This mode provides very verbose output, which slows
down executor and breaks the repro.
So let's make the executor debug output less verbose and add
the timestamps.
Signed-off-by: Alexander Popov <alex.popov@linux.com>
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 02c1eb82e..6980d8ca6 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -1928,7 +1928,6 @@ retry: } int i; for (i = 0;; i++) { - debug("unlink(%s)\n", filename); if (unlink(filename) == 0) break; if (errno == EPERM) { @@ -1956,7 +1955,6 @@ retry: closedir(dp); int i; for (i = 0;; i++) { - debug("rmdir(%s)\n", dir); if (rmdir(dir) == 0) break; if (i < 100) { |
