From b16ba6390d6b2731bf5cfa0ef04aa1299b7306cf Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Sep 2017 16:13:38 +0200 Subject: sys/syz-extract: parallelize over files --- sys/linux/extract.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/extract.sh b/sys/linux/extract.sh index ed46356ad..2eb7dd2a6 100755 --- a/sys/linux/extract.sh +++ b/sys/linux/extract.sh @@ -56,13 +56,10 @@ generate_arch() { echo "$OUT" exit 1 fi - for F in $FILES; do - echo "extracting from $F" - bin/syz-extract -arch $1 -linux "$LINUX" -linuxbld "$LINUXBLD" "sys/linux/$F" - if [ $? -ne 0 ]; then - exit 1 - fi - done + (cd sys/linux; ../../bin/syz-extract -arch $1 -linux "$LINUX" -linuxbld "$LINUXBLD" $FILES) + if [ $? -ne 0 ]; then + exit 1 + fi echo } -- cgit mrf-deployment