Skip to contentSkip to conversation

tracetool dtrace disabled-events fix

PATCH Superseded Lee Essen 2 participants 2 messages Mar 20, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Lee Essen

author
#0 lore raw

PATCH 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.

--

scripts/tracetool +6 -0
index 65bd0a1..d5e5591 100755
@@ -161,6 +161,12 @@ linetoc_nop()
     return
 }
 
+linetod_nop()
+{
+    # Used when "disabled" events are processed
+    return
+}
+
 linetoc_end_nop()
 {
     return
#1 lore raw
Quoted 15 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.

--

scripts/tracetool +0 -0
index 65bd0a1..d5e5591 100755
@@ -161,6 +161,12 @@ linetoc_nop()

    return
 }

scripts/tracetool linetoc_nop() · line 168

Quoted 5 lines
scripts/tracetool +5 -0
+linetod_nop()
+{
+    # Used when "disabled" events are processed
+    return
+}

Please also add linetostap_nop() for SystemTap builds - the nop function was missing there too.

Otherwise looks good.

Stefan