Received: from eggs.gnu.org ([2001:4830:134:3::10]:60550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCqFc-00031C-1a for qemu-devel@nongnu.org; Fri, 02 Dec 2016 10:59:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCqFb-00050z-0f for qemu-devel@nongnu.org; Fri, 02 Dec 2016 10:59:52 -0500 Received: from mail-wj0-x236.google.com ([2a00:1450:400c:c01::236]:33551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCqFa-000506-Nu for qemu-devel@nongnu.org; Fri, 02 Dec 2016 10:59:50 -0500 Received: by mail-wj0-x236.google.com with SMTP id xy5so235708945wjc.0 for ; Fri, 02 Dec 2016 07:59:50 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Fri, 2 Dec 2016 15:59:34 +0000 Message-Id: <20161202155935.3130-9-alex.bennee@linaro.org> In-Reply-To: <20161202155935.3130-1-alex.bennee@linaro.org> References: <20161202155935.3130-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RISU PATCH 8/9] new: record_traces.sh helper script List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: qemu-devel@nongnu.org, joserz@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= A simple script to run through a bunch of binaries and generate their trace files. Signed-off-by: Alex Bennée --- record_traces.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 record_traces.sh diff --git a/record_traces.sh b/record_traces.sh new file mode 100755 index 0000000..89c62d5 --- /dev/null +++ b/record_traces.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# +# Record traces +# +# A risu helper script to batch process a bunch of binaries and record their outputs +# +set -e + + +for f in $@; do + echo "Running risu against $f" + t="$f.trace" + ./risu --master $f -t $t + echo "Checking trace file OK" + ./risu $f -t $t +done -- 2.10.2