From nobody Wed Nov 5 17:59:06 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1496420368010516.3759326300163; Fri, 2 Jun 2017 09:19:28 -0700 (PDT) Received: from localhost ([::1]:50625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGpIJ-0007dR-UB for importer@patchew.org; Fri, 02 Jun 2017 12:19:23 -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) 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) 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) From: =?UTF-8?q?Alex=20Benn=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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 A simple script to run through a bunch of binaries and generate their trace files. Signed-off-by: Alex Benn=C3=A9e --- v3 - allow overriding of RISU binary --- record_traces.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 record_traces.sh 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 the= ir outputs +# +set -e + +if test -z "$RISU"; then + script_dir=3D$(CDPATH=3D cd -- "$(dirname -- "$0")" && pwd -P) + RISU=3D${script_dir}/risu +fi + +for f in $@; do + echo "Running risu against $f" + t=3D"$f.trace" + ${RISU} --master $f -t $t + echo "Checking trace file OK" + ${RISU} $f -t $t +done --=20 2.13.0