1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /* Copyright (c) 2017 The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
- #undef TRACE_SYSTEM
- #define TRACE_SYSTEM lmh
- #if !defined(_TRACE_LMH_H) || defined(TRACE_HEADER_MULTI_READ)
- #define _TRACE_LMH_H
- #include <linux/tracepoint.h>
- TRACE_EVENT(lmh_dcvs_freq,
- TP_PROTO(unsigned long cpu, unsigned long freq),
- TP_ARGS(cpu, freq),
- TP_STRUCT__entry(
- __field(unsigned long, cpu)
- __field(unsigned long, freq)
- ),
- TP_fast_assign(
- __entry->cpu = cpu;
- __entry->freq = freq;
- ),
- TP_printk("cpu:%lu max frequency:%lu", __entry->cpu, __entry->freq)
- );
- #endif /* _TRACE_LMH_H */
- /* This part must be outside protection */
- #include <trace/define_trace.h>
|