Permalink
Browse files

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.

Signed-off-by: Lee Essen <lee.essen@nowonline.co.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
  • Loading branch information...
1 parent 2174e23 commit 60be795f0b9ca06030b942367a82d80f125a50f7 @essele essele committed with Stefan Hajnoczi Mar 20, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 scripts/tracetool
View
@@ -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

0 comments on commit 60be795

Please sign in to comment.