From 0e7547d77c52f0ec26e6e95dc06baa6154bc81e4 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 24 Sep 2018 15:26:08 +0300 Subject: 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 --- executor/common_linux.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'executor/common_linux.h') 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) { -- cgit mrf-deployment