master
py 35 lines 1.02 KB
Raw
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 """
4 trace/generated-ust.c
5 """
6
7 __author__ = "Mohamad Gebai <mohamad.gebai@polymtl.ca>"
8 __copyright__ = "Copyright 2012, Mohamad Gebai <mohamad.gebai@polymtl.ca>"
9 __license__ = "GPL version 2 or (at your option) any later version"
10
11 __maintainer__ = "Stefan Hajnoczi"
12 __email__ = "stefanha@redhat.com"
13
14
15 from tracetool import out
16
17
18 def generate(events, backend, group):
19 events = [e for e in events
20 if "disabled" not in e.properties]
21
22 out('/* This file is autogenerated by tracetool, do not edit. */',
23 '/* SPDX-License-Identifier: GPL-2.0-or-later */',
24 '',
25 '#include "qemu/osdep.h"',
26 '',
27 '#define TRACEPOINT_DEFINE',
28 '#define TRACEPOINT_CREATE_PROBES',
29 '',
30 '/* If gcc version 4.7 or older is used, LTTng ust gives a warning when compiling with',
31 ' -Wredundant-decls.',
32 ' */',
33 '#pragma GCC diagnostic ignored "-Wredundant-decls"',
34 '',
35 '#include "trace-ust-all.h"')