Skip to contentSkip to conversation

tracetool dtrace disabled-events fix

PATCH Applied Lee Essen 2 participants 2 messages Mar 20, 2012 – Mar 21, 2012

lore
Share & tools
lore

Lee Essen

author
#0 lore raw

PATCH v2 1/1 tracetool dtrace disabled-events fix

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 -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
#1 lore raw
Quoted 7 lines · Lee Essen

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.

--

Thanks, applied to the tracing patches tree:
https://github.com/stefanha/qemu/commits/tracing

Note that this patch has whitespace damage. I hat to apply it manually because git-am(1) would not accept it. Please check your patch sending process - using git-send-email(1) works best and shouldn't mangle whitespace.

Also please use "Lee Essen <[email protected]>" with a space between the name and email address. I'm not sure if any parsers have problems when the space is missing, but it normally needs to be there.

Stefan