2 # -*- coding: utf-8 -*-
5 trace/generated-tracers.h
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 out('/* This file is autogenerated by tracetool, do not edit. */',
22 '#ifndef TRACE__GENERATED_TRACERS_H',
23 '#define TRACE__GENERATED_TRACERS_H',
25 '#include "qemu-common.h"',
28 backend.generate_begin(events)
32 'static inline void %(api)s(%(args)s)',
37 if "disable" not in e.properties:
42 backend.generate_end(events)
44 out('#endif /* TRACE__GENERATED_TRACERS_H */')