From 1d35f3e3d4fe8bddb27d438229b210c39c7cbfe6 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 1 Aug 2018 17:32:25 +0100 Subject: [PATCH] vtest: Add --no-loop-or-fork flag This is usefull for running vtest under apitrace. Signed-off-by: Jakob Bornecrantz Signed-off-by: Dave Airlie --- vtest/vtest_server.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vtest/vtest_server.c b/vtest/vtest_server.c index 3868fe3..01259c1 100644 --- a/vtest/vtest_server.c +++ b/vtest/vtest_server.c @@ -164,9 +164,12 @@ while (__AFL_LOOP(1000)) { #endif if (argc > 1) { - if (!strcmp(argv[1], "--no-fork")) + if (!strcmp(argv[1], "--no-loop-or-fork")) { + do_fork = false; + loop = false; + } else if (!strcmp(argv[1], "--no-fork")) { do_fork = false; - else { + } else { ret = open(argv[1], O_RDONLY); if (ret == -1) { perror(0);