From patchwork Fri Jun 2 16:08:47 2017 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: 101288 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp479177qge; Fri, 2 Jun 2017 09:19:43 -0700 (PDT) X-Received: by 10.200.36.87 with SMTP id d23mr9249269qtd.196.1496420383413; Fri, 02 Jun 2017 09:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496420383; cv=none; d=google.com; s=arc-20160816; b=S4Ae5KGSjiDRt5qWVQl3xqAd9i0v0Z2K/gYBj2PBJRB9HgitfQbgsEAlrUyHLo9Pmp pSQID3D30apJ1GWjgCRPaCrSRe5FoxVRogEVBZz+NXecxMv5yBCsv+39wdxyxdsaDn9e t5qlGro/o6XRgxXRHs0g+XqkUBob7JvWipwd8+LQ4Y3xzw+u9o/izq7ia0+wCTsU2imD F1fRdOrakyqBFLcMfSPiwpt2NumHS4p2MYEcdBAPfaTusreqrC4AOhXdril/R6VwuyO4 htejKv1V9E2D7HELSy29MjMqycY3NeBoNz37s39hJDc0XEkAEs8YlsITdncXolY6dnhL Islw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Yp2jK5JqlUCZ+yhejSiG3aiPjCcKY6rPfChxXDCnC6A=; b=yE9MeukqV6MiShXNVz92CO0VGXbkto1LiopafmFwq2032qgHB+VV6AX9TOgeGiyPwx 6uWRUSoOvXRwACzfIrt+aSFMm1zhrib+dCEOCISXlXTn/VP20BVbq8yzZqqLy9Mmcz7F jZ87uX3DyC/OAJjB2Rj9rPJABWLmTCGNBpp3pobl01RsZaZ5BKRQBLLTo3Ew9M1ifVNK EwprvasxoILT/DkqPmpcakj4nkh2zxhOGF+l8emGlzN23H5csLhd2YXSTHwZJP5JfhkX GJfDdpa1atSdIKv17opEc/aOZG9u221c3MEwIKz76qAMyBe4KSOl4EuJfq98Jx83VQY4 UeIw== ARC-Authentication-Results: i=1; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t4si23683924qta.25.2017.06.02.09.19.43 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 02 Jun 2017 09:19:43 -0700 (PDT) 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 sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGpIa-0007dR-Ps for patch@linaro.org; Fri, 02 Jun 2017 12:19:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGp84-000675-SI for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:08:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGp81-000545-HE for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:08:48 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:38244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGp81-00053L-BH for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:08:45 -0400 Received: by mail-wm0-x236.google.com with SMTP id n195so30610681wmg.1 for ; Fri, 02 Jun 2017 09:08:45 -0700 (PDT) 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=Yp2jK5JqlUCZ+yhejSiG3aiPjCcKY6rPfChxXDCnC6A=; b=GUDAiS9HG8sVkFBgGOHlbrrN7UJEz4aZ9RGH68vqxu2LxAeMS+XspVedQ/+k8Dhjif B3VKwJAaSKaOuuBpSQmecQo3VhyWptDedoDN1lWhkywlv3VlpYUZ8M1gItD/GOyrnVc9 fcxSyGxYGC+Ibzu+586Ood3CmuyckhrPGBdGg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Yp2jK5JqlUCZ+yhejSiG3aiPjCcKY6rPfChxXDCnC6A=; b=lP7dvy5Nir+P/y8l3GlM/2kvW08SY+78g3zQIiV15elahSH3opIBM/2yOnDvQpKQPd IJmjWNKucvVhmXdNm0UExful7LrgFfQDY5dwo/gsyQSKnJs838CJk3zdzUZ73i9Lllrr u9zIrTOasJ0UiuaTyKWrcwwJbRV+AA8QdkkFQR6ies5dijuDNphjGJpAcXpbmDAC+5w7 iyhWH0s/xK8/BIsp0/Z8Tgk/y0ZkflOBAeRs2YAVTNtwkJ6vITwqSufLA+PZ6dQHUvo1 /E5YtOd+wFZHBhA01RSIjWEwLaQ7YNEAI/lGWN1g072fWT95h/jx1+9OeCBLZ7FOTN2o uq3Q== X-Gm-Message-State: AODbwcCs0SXozThwNh2Ocn/qdfZYQUP1yjQtCBpsoshH59Q3S2U+Oa6s UfggRU5jAg0mkPkP X-Received: by 10.28.21.13 with SMTP id 13mr42235wmv.13.1496419724460; Fri, 02 Jun 2017 09:08:44 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u198sm3074695wmd.29.2017.06.02.09.08.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 09:08:41 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id BFC0F3E0454; Fri, 2 Jun 2017 17:08:54 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 2 Jun 2017 17:08:47 +0100 Message-Id: <20170602160848.4913-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170602160848.4913-1-alex.bennee@linaro.org> References: <20170602160848.4913-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::236 Subject: [Qemu-devel] [RISU PATCH v4 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_Benn=C3=A9e?= , 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.13.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