From 1c202847db0380015a8920bfd21375c2d9f28ddb Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 3 Sep 2021 16:20:07 +0000 Subject: all: refactor fault injection into call props Now that call properties mechanism is implemented, we can refactor fault injection. Unfortunately, it is impossible to remove all traces of the previous apprach. In reprolist and while performing syz-ci jobs, syzkaller still needs to parse the old format. Remove the old prog options-based approach whenever possible and replace it with the use of call properties. --- executor/common.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'executor/common.h') diff --git a/executor/common.h b/executor/common.h index 17c680b21..3c817a7e8 100644 --- a/executor/common.h +++ b/executor/common.h @@ -271,13 +271,19 @@ static void __attribute__((noinline)) remove_dir(const char* dir) #endif #if !GOOS_linux && !GOOS_netbsd -#if SYZ_EXECUTOR +#if SYZ_EXECUTOR || SYZ_FAULT static int inject_fault(int nth) { return 0; } #endif +#if SYZ_FAULT +static void setup_fault() +{ +} +#endif + #if SYZ_EXECUTOR static int fault_injected(int fail_fd) { -- cgit mrf-deployment