host1x.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * include/trace/events/host1x.h
  3. *
  4. * host1x event logging to ftrace.
  5. *
  6. * Copyright (c) 2010-2013, NVIDIA Corporation.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful, but WITHOUT
  14. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  15. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  16. * more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along
  19. * with this program; if not, write to the Free Software Foundation, Inc.,
  20. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21. */
  22. #undef TRACE_SYSTEM
  23. #define TRACE_SYSTEM host1x
  24. #if !defined(_TRACE_HOST1X_H) || defined(TRACE_HEADER_MULTI_READ)
  25. #define _TRACE_HOST1X_H
  26. #include <linux/ktime.h>
  27. #include <linux/tracepoint.h>
  28. DECLARE_EVENT_CLASS(host1x,
  29. TP_PROTO(const char *name),
  30. TP_ARGS(name),
  31. TP_STRUCT__entry(__field(const char *, name)),
  32. TP_fast_assign(__entry->name = name;),
  33. TP_printk("name=%s", __entry->name)
  34. );
  35. TRACE_EVENT(host1x_syncpt_load_min,
  36. TP_PROTO(u32 id, u32 val),
  37. TP_ARGS(id, val),
  38. TP_STRUCT__entry(
  39. __field(u32, id)
  40. __field(u32, val)
  41. ),
  42. TP_fast_assign(
  43. __entry->id = id;
  44. __entry->val = val;
  45. ),
  46. TP_printk("id=%d, val=%d", __entry->id, __entry->val)
  47. );
  48. #endif /* _TRACE_HOST1X_H */
  49. /* This part must be outside protection */
  50. #include <trace/define_trace.h>