vmw_pvscsi: check page count while initialising descriptor rings
[qemu/ar7.git] / scripts / tracetool / format / ust_events_c.py
blob9967c7a82e09f99c70914d60722198740fd74951
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
4 """
5 trace/generated-ust.c
6 """
8 __author__ = "Mohamad Gebai <mohamad.gebai@polymtl.ca>"
9 __copyright__ = "Copyright 2012, Mohamad Gebai <mohamad.gebai@polymtl.ca>"
10 __license__ = "GPL version 2 or (at your option) any later version"
12 __maintainer__ = "Stefan Hajnoczi"
13 __email__ = "stefanha@redhat.com"
16 from tracetool import out
19 def generate(events, backend):
20 events = [e for e in events
21 if "disabled" not in e.properties]
23 out('/* This file is autogenerated by tracetool, do not edit. */',
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 "generated-ust-provider.h"')