[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RISU PATCH v6 09/10] new: record_traces.sh helper script
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [RISU PATCH v6 09/10] new: record_traces.sh helper script |
Date: |
Wed, 21 Jun 2017 16:42:43 +0100 |
A simple script to run through a bunch of binaries and generate their
trace files.
Signed-off-by: Alex Bennée <address@hidden>
---
v6
- moved into contrib/
v5
- author, license and usage header
v3
- allow overriding of RISU binary
---
contrib/record_traces.sh | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100755 contrib/record_traces.sh
diff --git a/contrib/record_traces.sh b/contrib/record_traces.sh
new file mode 100755
index 0000000..1234a61
--- /dev/null
+++ b/contrib/record_traces.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# A risu helper script to batch process a bunch of binaries and record their
outputs
+#
+# Copyright (c) 2017 Linaro Limited
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Alex Bennée <address@hidden> - initial implementation
+#
+# Usage:
+# export RISU=/path/to/risu
+# ./record_traces.sh ./testcases.aarch64/*.bin
+#
+
+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
--
2.13.0
- Re: [Qemu-devel] [RISU PATCH v6 02/10] build-all-archs: support cross building via docker, (continued)
[Qemu-devel] [RISU PATCH v6 04/10] risu: paramterise send/receive functions, Alex Bennée, 2017/06/21
[Qemu-devel] [RISU PATCH v6 01/10] README: document the coding style used for risu, Alex Bennée, 2017/06/21
[Qemu-devel] [RISU PATCH v6 03/10] risu: a bit more verbosity when starting, Alex Bennée, 2017/06/21
[Qemu-devel] [RISU PATCH v6 07/10] risu: handle trace through stdin/stdout, Alex Bennée, 2017/06/21
[Qemu-devel] [RISU PATCH v6 06/10] risu: add simple trace and replay support, Alex Bennée, 2017/06/21
[Qemu-devel] [RISU PATCH v6 05/10] risu: add header to trace stream, Alex Bennée, 2017/06/21
[Qemu-devel] [RISU PATCH v6 10/10] new: run_risu.sh script, Alex Bennée, 2017/06/21
[Qemu-devel] [RISU PATCH v6 08/10] risu: add support compressed tracefiles, Alex Bennée, 2017/06/21
[Qemu-devel] [RISU PATCH v6 09/10] new: record_traces.sh helper script,
Alex Bennée <=
Re: [Qemu-devel] [RISU PATCH v6 00/10] Record/replay patches, Peter Maydell, 2017/06/29