2 # -*- coding: utf-8 -*-
5 trace/generated-tracers.dtrace (DTrace only).
8 __author__
= "Lluís Vilanova <vilanova@ac.upc.edu>"
9 __copyright__
= "Copyright 2012-2014, Lluís Vilanova <vilanova@ac.upc.edu>"
10 __license__
= "GPL version 2 or (at your option) any later version"
12 __maintainer__
= "Stefan Hajnoczi"
13 __email__
= "stefanha@linux.vnet.ibm.com"
16 from tracetool
import out
19 def generate(events
, backend
):
20 events
= [e
for e
in events
21 if "disable" not in e
.properties
]
23 out('/* This file is autogenerated by tracetool, do not edit. */'
30 # DTrace provider syntax expects foo() for empty
31 # params, not foo(void)
35 # Define prototype for probe arguments
37 'probe %(name)s(%(args)s);',