tracepoint-defs.h 740 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef TRACEPOINT_DEFS_H
  2. #define TRACEPOINT_DEFS_H 1
  3. /*
  4. * File can be included directly by headers who only want to access
  5. * tracepoint->key to guard out of line trace calls, or the definition of
  6. * trace_print_flags{_u64}. Otherwise linux/tracepoint.h should be used.
  7. */
  8. #include <linux/atomic.h>
  9. #include <linux/static_key.h>
  10. struct trace_print_flags {
  11. unsigned long mask;
  12. const char *name;
  13. };
  14. struct trace_print_flags_u64 {
  15. unsigned long long mask;
  16. const char *name;
  17. };
  18. struct tracepoint_func {
  19. void *func;
  20. void *data;
  21. int prio;
  22. };
  23. struct tracepoint {
  24. const char *name; /* Tracepoint name */
  25. struct static_key key;
  26. void (*regfunc)(void);
  27. void (*unregfunc)(void);
  28. struct tracepoint_func __rcu *funcs;
  29. };
  30. #endif