2
0

ust_events_c.py 990 B

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