Skip to contentSkip to conversation

Tracing patches

GIT PULL New Stefan Hajnoczi 2 participants 5 messages Mar 30, 2012 – Apr 2, 2012 Kbuild

lore
Share & tools
lore
#1 lore raw

PATCH 1/3 Makefile.target: code stp dependency on trace-events

In reply to Stefan Hajnoczi

From: Alon Levy <[email protected]>

---
 Makefile.target |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile.target +1 -1
index 44b2e83..9f3c100 100644
@@ -58,7 +58,7 @@ else
 TARGET_TYPE=system
 endif
 
-$(QEMU_PROG).stp:
+$(QEMU_PROG).stp: $(SRC_PATH)/trace-events
 	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool \
 		--$(TRACE_BACKEND) \
 		--binary $(bindir)/$(QEMU_PROG) \
Signature · 1 line
1.7.9.1
#3 lore raw

PATCH 3/3 tracetool: dtrace: handle in and next reserved words

In reply to Stefan Hajnoczi

From: Alon Levy <[email protected]>

---
 scripts/tracetool |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
scripts/tracetool +6 -4
index a279c2c..5e77aa2 100755
@@ -506,10 +506,12 @@ EOF
     i=1
     for arg in $arglist
     do
-        # 'limit' is a reserved keyword
-        if [ "$arg" = "limit" ]; then
-          arg="_limit"
-        fi
+        # postfix reserved words with '_'
+        case "$arg" in
+            limit|in|next|self)
+                arg="${arg}_"
+                ;;
+        esac
         cat <<EOF
   $arg = \$arg$i;
 EOF
Signature · 1 line
1.7.9.1
#2 lore raw

PATCH 2/3 tracetool: dtrace disabled-events fix

In reply to Stefan Hajnoczi

From: Lee Essen <[email protected]>

If there are "disabled" entries in the trace-events file then linetod_nop() is called if the backend is dtrace, it's currently not present. Also equivalent fix for stap.

---
 scripts/tracetool |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
scripts/tracetool +12 -0
index 65bd0a1..a279c2c 100755
@@ -161,6 +161,18 @@ linetoc_nop()
     return
 }
 
+linetod_nop()
+{
+    # Used when "disabled" events are processed
+    return
+}
+
+linetostap_nop()
+{
+    # Used when "disabled" events are processed
+    return
+}
+
 linetoc_end_nop()
 {
     return
Signature · 1 line
1.7.9.1
#0 lore raw

The latest tracing fixes.

Alon Levy (2):
Makefile.target: code stp dependency on trace-events
tracetool: dtrace: handle in and next reserved words

Lee Essen (1):
tracetool: dtrace disabled-events fix

 Makefile.target   |    2 +-
 scripts/tracetool |   22 ++++++++++++++++++----
 2 files changed, 19 insertions(+), 5 deletions(-)
Signature · 1 line
1.7.9.1
#4 lore raw
Quoted 8 lines · Stefan Hajnoczi

The latest tracing fixes.

Alon Levy (2):
Makefile.target: code stp dependency on trace-events
tracetool: dtrace: handle in and next reserved words

Lee Essen (1):
tracetool: dtrace disabled-events fix

Pulled. Thanks.

Regards,

Anthony Liguori

Quoted 5 lines
  Makefile.target   |    2 +-
  scripts/tracetool |   22 ++++++++++++++++++----
  2 files changed, 19 insertions(+), 5 deletions(-)