Perf_Lttng_TracePoints.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 3 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #undef TRACEPOINT_PROVIDER
  14. #define TRACEPOINT_PROVIDER ardupilot
  15. #undef TRACEPOINT_INCLUDE
  16. #define TRACEPOINT_INCLUDE <AP_HAL_Linux/Perf_Lttng_TracePoints.h>
  17. #if !defined(_PERF_LTTNG_TRACEPOINT_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
  18. #define _PERF_LTTNG_TRACEPOINT_H
  19. #include <lttng/tracepoint.h>
  20. TRACEPOINT_EVENT(
  21. ardupilot,
  22. begin,
  23. TP_ARGS(
  24. const char*, name_arg
  25. ),
  26. TP_FIELDS(
  27. ctf_string(name_field, name_arg)
  28. )
  29. )
  30. TRACEPOINT_EVENT(
  31. ardupilot,
  32. end,
  33. TP_ARGS(
  34. const char*, name_arg
  35. ),
  36. TP_FIELDS(
  37. ctf_string(name_field, name_arg)
  38. )
  39. )
  40. TRACEPOINT_EVENT(
  41. ardupilot,
  42. count,
  43. TP_ARGS(
  44. const char*, name_arg,
  45. int, count_arg
  46. ),
  47. TP_FIELDS(
  48. ctf_string(name_field, name_arg)
  49. ctf_integer(int, count_field, count_arg)
  50. )
  51. )
  52. #endif
  53. #include <lttng/tracepoint-event.h>