123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #undef TRACE_SYSTEM
- #define TRACE_SYSTEM cpufreq_interactive
- #if !defined(_TRACE_CPUFREQ_INTERACTIVE_H) || defined(TRACE_HEADER_MULTI_READ)
- #define _TRACE_CPUFREQ_INTERACTIVE_H
- #include <linux/tracepoint.h>
- DECLARE_EVENT_CLASS(set,
- TP_PROTO(u32 cpu_id, unsigned long targfreq,
- unsigned long actualfreq),
- TP_ARGS(cpu_id, targfreq, actualfreq),
- TP_STRUCT__entry(
- __field( u32, cpu_id )
- __field(unsigned long, targfreq )
- __field(unsigned long, actualfreq )
- ),
- TP_fast_assign(
- __entry->cpu_id = (u32) cpu_id;
- __entry->targfreq = targfreq;
- __entry->actualfreq = actualfreq;
- ),
- TP_printk("cpu=%u targ=%lu actual=%lu",
- __entry->cpu_id, __entry->targfreq,
- __entry->actualfreq)
- );
- DEFINE_EVENT(set, cpufreq_interactive_up,
- TP_PROTO(u32 cpu_id, unsigned long targfreq,
- unsigned long actualfreq),
- TP_ARGS(cpu_id, targfreq, actualfreq)
- );
- DEFINE_EVENT(set, cpufreq_interactive_down,
- TP_PROTO(u32 cpu_id, unsigned long targfreq,
- unsigned long actualfreq),
- TP_ARGS(cpu_id, targfreq, actualfreq)
- );
- DECLARE_EVENT_CLASS(loadeval,
- TP_PROTO(unsigned long cpu_id, unsigned long load,
- unsigned long curfreq, unsigned long targfreq),
- TP_ARGS(cpu_id, load, curfreq, targfreq),
- TP_STRUCT__entry(
- __field(unsigned long, cpu_id )
- __field(unsigned long, load )
- __field(unsigned long, curfreq )
- __field(unsigned long, targfreq )
- ),
- TP_fast_assign(
- __entry->cpu_id = cpu_id;
- __entry->load = load;
- __entry->curfreq = curfreq;
- __entry->targfreq = targfreq;
- ),
- TP_printk("cpu=%lu load=%lu cur=%lu targ=%lu",
- __entry->cpu_id, __entry->load, __entry->curfreq,
- __entry->targfreq)
- );
- DEFINE_EVENT(loadeval, cpufreq_interactive_target,
- TP_PROTO(unsigned long cpu_id, unsigned long load,
- unsigned long curfreq, unsigned long targfreq),
- TP_ARGS(cpu_id, load, curfreq, targfreq)
- );
- DEFINE_EVENT(loadeval, cpufreq_interactive_already,
- TP_PROTO(unsigned long cpu_id, unsigned long load,
- unsigned long curfreq, unsigned long targfreq),
- TP_ARGS(cpu_id, load, curfreq, targfreq)
- );
- DEFINE_EVENT(loadeval, cpufreq_interactive_notyet,
- TP_PROTO(unsigned long cpu_id, unsigned long load,
- unsigned long curfreq, unsigned long targfreq),
- TP_ARGS(cpu_id, load, curfreq, targfreq)
- );
- TRACE_EVENT(cpufreq_interactive_boost,
- TP_PROTO(char *s),
- TP_ARGS(s),
- TP_STRUCT__entry(
- __field(char *, s)
- ),
- TP_fast_assign(
- __entry->s = s;
- ),
- TP_printk("%s", __entry->s)
- );
- TRACE_EVENT(cpufreq_interactive_unboost,
- TP_PROTO(char *s),
- TP_ARGS(s),
- TP_STRUCT__entry(
- __field(char *, s)
- ),
- TP_fast_assign(
- __entry->s = s;
- ),
- TP_printk("%s", __entry->s)
- );
- #endif /* _TRACE_CPUFREQ_INTERACTIVE_H */
- /* This part must be outside protection */
- #include <trace/define_trace.h>
|