2 # -*- coding: utf-8 -*-
5 DTrace/SystemTAP backend.
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
25 if PROBEPREFIX is None:
26 raise ValueError("you must set PROBEPREFIX")
34 raise ValueError("you must set BINARY")
38 def generate_h_begin(events):
39 out('#include "trace/generated-tracers-dtrace.h"',
43 def generate_h(event):
44 out(' QEMU_%(uppername)s(%(argnames)s);',
45 uppername=event.name.upper(),
46 argnames=", ".join(event.args.names()))