lmh.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright (c) 2017 The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #undef TRACE_SYSTEM
  13. #define TRACE_SYSTEM lmh
  14. #if !defined(_TRACE_LMH_H) || defined(TRACE_HEADER_MULTI_READ)
  15. #define _TRACE_LMH_H
  16. #include <linux/tracepoint.h>
  17. TRACE_EVENT(lmh_dcvs_freq,
  18. TP_PROTO(unsigned long cpu, unsigned long freq),
  19. TP_ARGS(cpu, freq),
  20. TP_STRUCT__entry(
  21. __field(unsigned long, cpu)
  22. __field(unsigned long, freq)
  23. ),
  24. TP_fast_assign(
  25. __entry->cpu = cpu;
  26. __entry->freq = freq;
  27. ),
  28. TP_printk("cpu:%lu max frequency:%lu", __entry->cpu, __entry->freq)
  29. );
  30. #endif /* _TRACE_LMH_H */
  31. /* This part must be outside protection */
  32. #include <trace/define_trace.h>