From 320fba2a1f384e17db150d74540a2cf005eb47b5 Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Thu, 27 Jan 2011 10:24:41 +0100 Subject: New trace-event backend: stderr This backend sends trace events to standard error output during the emulation. Also add a "--list-backends" option to tracetool, so configure script can display the list of available backends. Signed-off-by: Fabien Chouteau Acked-by: Stefan Hajnoczi Signed-off-by: Blue Swirl --- scripts/tracetool | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 2 deletions(-) (limited to 'scripts/tracetool') diff --git a/scripts/tracetool b/scripts/tracetool index fce491c505..e04668322d 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -13,12 +13,13 @@ set -f usage() { cat >&2 < +EOF +} + +linetoh_stderr() +{ + local name args argnames argc fmt + name=$(get_name "$1") + args=$(get_args "$1") + argnames=$(get_argnames "$1" ",") + argc=$(get_argc "$1") + fmt=$(get_fmt "$1") + + if [ "$argc" -gt 0 ]; then + argnames=", $argnames" + fi + + cat <