qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/4] trace: [ust] fix generation of 'trace.c' on events without args
@ 2011-03-27 19:42 Lluís
  2011-03-27 19:43 ` [Qemu-devel] [PATCH 2/4] trace: generalize the "property" concept in the trace-events file Lluís
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lluís @ 2011-03-27 19:42 UTC (permalink / raw)
  To: qemu-devel

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
 scripts/tracetool |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/scripts/tracetool b/scripts/tracetool
index 412f695..d88cb43 100755
--- a/scripts/tracetool
+++ b/scripts/tracetool
@@ -338,6 +338,7 @@ linetoc_ust()
     name=$(get_name "$1")
     args=$(get_args "$1")
     argnames=$(get_argnames "$1", ",")
+    [ -z "$argnames" ] || argnames=", $argnames"
     fmt=$(get_fmt "$1")
 
     cat <<EOF
@@ -345,7 +346,7 @@ DEFINE_TRACE(ust_$name);
 
 static void ust_${name}_probe($args)
 {
-    trace_mark(ust, $name, "$fmt", $argnames);
+    trace_mark(ust, $name, "$fmt"$argnames);
 }
 EOF
 
@@ -488,7 +489,7 @@ EOF
         cat <<EOF
   $arg = \$arg$i;
 EOF
-	i="$((i+1))"
+        i="$((i+1))"
     done
 
     cat <<EOF
@@ -585,7 +586,7 @@ tracetostap()
        exit 1
     fi
     if [ -z "$probeprefix" ]; then
-	probeprefix="qemu.$targettype.$targetarch";
+        probeprefix="qemu.$targettype.$targetarch";
     fi
     echo "/* This file is autogenerated by tracetool, do not edit. */"
     convert stap

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-28 12:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-27 19:42 [Qemu-devel] [PATCH 1/4] trace: [ust] fix generation of 'trace.c' on events without args Lluís
2011-03-27 19:43 ` [Qemu-devel] [PATCH 2/4] trace: generalize the "property" concept in the trace-events file Lluís
2011-03-27 19:43 ` [Qemu-devel] [PATCH 3/4] trace: always use the "nop" backend on events with the "disable" keyword Lluís
2011-03-27 19:43 ` [Qemu-devel] [PATCH 4/4] trace: [simple] always enable trace points Lluís
2011-03-28 12:31   ` Lluís
2011-03-28 12:39   ` Lluís

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).