From patchwork Fri Dec 2 15:59:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 86324 Delivered-To: patch@linaro.org Received: by 10.182.112.6 with SMTP id im6csp396174obb; Fri, 2 Dec 2016 08:02:35 -0800 (PST) X-Received: by 10.200.44.184 with SMTP id 53mr38031737qtw.291.1480694555064; Fri, 02 Dec 2016 08:02:35 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id j186si3279508qkf.301.2016.12.02.08.02.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 02 Dec 2016 08:02:35 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCqID-0004Fh-OV for patch@linaro.org; Fri, 02 Dec 2016 11:02:33 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f4bQ4JJrqgdZWH0z+Qs9eg9+rrecm0OlyPuG1CBp1kc=; b=RWoPY6TaFsrw2QSHJBJWJo2Ip24ZxhxQwlT2lHDh5vDsUA6pa9/AHE3aI8POlFq5eG TbVSvWejOI0p2EwEehHupldmDwJo37KtWef9jWOOTGOircjqwmwNFMckkeozNTiA01TE eh1Zl/26iMCaKFqEeKt1IpLTYs0qVw/K7Ae8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f4bQ4JJrqgdZWH0z+Qs9eg9+rrecm0OlyPuG1CBp1kc=; b=JdQ3NINKq96r7ViBfn8w64cML0+poF7z8gc2VDZcaHWHypjWnJCbEK6dqF4F3QiWJf iprccfecJqFO+od2MtP00ewEoTY7l1lNzu9svYxjs0bS6oKpk5bniqpHUnQpC4UNudxa NIYZsHSIQy6t5Wiuy7znTJE7vfafDsRFQ71JdemSGXJk9EaMQ8buZkXrbw7kEphHa03u iMbjkrwRu+lr0UUHA2ArxL5EGMfi7SWXq7NZLAfLjqzcd1XAr9g7lmrsYc2ikEfADgXo LDOrP4t7B02aHh/Fr25gqcaB0/LN55TuJwNLTgARWV4GUU0IkNWuhWnw3EuvZ5ZvYKSb mtkg== X-Gm-Message-State: AKaTC00QX7sa49V5lQcZ2MNVQrYUbcibFbsLZzp4RbNku2S+rYOQlp6Bwu+ywzmdUy05osEG X-Received: by 10.194.86.165 with SMTP id q5mr38454862wjz.178.1480694389470; Fri, 02 Dec 2016 07:59:49 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b3sm6191273wjy.40.2016.12.02.07.59.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Dec 2016 07:59:47 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9EF6C3E055C; Fri, 2 Dec 2016 15:59:40 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 2 Dec 2016 15:59:34 +0000 Message-Id: <20161202155935.3130-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161202155935.3130-1-alex.bennee@linaro.org> References: <20161202155935.3130-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c01::236 Subject: [Qemu-devel] [RISU PATCH 8/9] new: record_traces.sh helper script X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , joserz@linux.vnet.ibm.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 -- 2.10.2 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