From patchwork Fri Dec 9 11:48:29 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: 87451 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp265409qgi; Fri, 9 Dec 2016 03:59:39 -0800 (PST) X-Received: by 10.200.46.234 with SMTP id i39mr67098936qta.167.1481284779185; Fri, 09 Dec 2016 03:59:39 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id s4si19842859qke.276.2016.12.09.03.59.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 09 Dec 2016 03:59:39 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; 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 208.118.235.17 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]:46072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFJpy-0008Pp-MZ for patch@linaro.org; Fri, 09 Dec 2016 06:59:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFJgU-0007SD-9Z for qemu-devel@nongnu.org; Fri, 09 Dec 2016 06:49:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFJgS-0007uR-5w for qemu-devel@nongnu.org; Fri, 09 Dec 2016 06:49:50 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:38721) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cFJgR-0007th-VZ for qemu-devel@nongnu.org; Fri, 09 Dec 2016 06:49:48 -0500 Received: by mail-wm0-f44.google.com with SMTP id f82so23300607wmf.1 for ; Fri, 09 Dec 2016 03:49:47 -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=wCi7GtzzWSd9ZjfTaiHKNTdAgRUvdprj54VjkYtAo0Q=; b=G3bzPCp1Z8qdA1wmOU8i088dJzF3OHHJvX90/DW06DC26t4wHGLCsSgFTFq2Z/b7x2 HYLxKEo9VtPKZoIgdBMPuxRaEpNI+zrrA05Yk6z3rGYCxXOkILFwe8YAzlweQPY+WpNV 0zZOt8V4s+EpLt5jXZG6w6ICkM9qktHfrSXEs= 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=wCi7GtzzWSd9ZjfTaiHKNTdAgRUvdprj54VjkYtAo0Q=; b=D5ilWYMMBmxMmIcwLnFdITWc9LwLwyIZrurf3EXICncpanZLhHjfzrto58FnVBvBiD cJSlbGNq4qAig1xc8XG/R0NhOQ4AyaYTpLxv2TOeeEm20rML3DsO+4p92kE/ib/zHVae dfshduDh2fiChTt20VckvAOaFNcKB7ilXnVbrX63PjBOba36tTWItDx7WB0uEqnAGGsW 8GUQzQrzz3MYBW1o//e2MX58g6soW04B0YeRZFOD8HwkHGlt2uPgRlgsnSyPtSWfbmaX CTR1aMklO/DSmN2wFss6HDasX35z1LXxyBKkqIq0OVdhV6MEhhwJfsNt9d/1gGP6srew x8uA== X-Gm-Message-State: AKaTC00SU+vacpelOcV2K2+wbgNXHvYZ1LYmYEqWVIR0g4AiHM4dkemNAfcUvKAXZe/okQNf X-Received: by 10.28.169.74 with SMTP id s71mr6247780wme.1.1481284126896; Fri, 09 Dec 2016 03:48:46 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id xu5sm41794896wjc.49.2016.12.09.03.48.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Dec 2016 03:48:46 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E83B43E0A22; Fri, 9 Dec 2016 11:48:34 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 9 Dec 2016 11:48:29 +0000 Message-Id: <20161209114830.9158-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161209114830.9158-1-alex.bennee@linaro.org> References: <20161209114830.9158-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] [fuzzy] X-Received-From: 74.125.82.44 Subject: [Qemu-devel] [RISU PATCH v3 09/10] 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 --- v3 - allow overriding of RISU binary --- record_traces.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 record_traces.sh -- 2.11.0 diff --git a/record_traces.sh b/record_traces.sh new file mode 100755 index 0000000..78ce47f --- /dev/null +++ b/record_traces.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Record traces +# +# A risu helper script to batch process a bunch of binaries and record their outputs +# +set -e + +if test -z "$RISU"; then + script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P) + RISU=${script_dir}/risu +fi + +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