ust_events_c.py 968 B

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