drm/panfrost: Remove set but not used variable 'bo'
[linux/fpc-iii.git] / include / trace / events / rtc.h
blob621333f1c8906ba208bcff9f3a2228fdd7239e33
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM rtc
4 #if !defined(_TRACE_RTC_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_RTC_H
7 #include <linux/rtc.h>
8 #include <linux/tracepoint.h>
10 DECLARE_EVENT_CLASS(rtc_time_alarm_class,
12 TP_PROTO(time64_t secs, int err),
14 TP_ARGS(secs, err),
16 TP_STRUCT__entry(
17 __field(time64_t, secs)
18 __field(int, err)
21 TP_fast_assign(
22 __entry->secs = secs;
23 __entry->err = err;
26 TP_printk("UTC (%lld) (%d)",
27 __entry->secs, __entry->err
31 DEFINE_EVENT(rtc_time_alarm_class, rtc_set_time,
33 TP_PROTO(time64_t secs, int err),
35 TP_ARGS(secs, err)
38 DEFINE_EVENT(rtc_time_alarm_class, rtc_read_time,
40 TP_PROTO(time64_t secs, int err),
42 TP_ARGS(secs, err)
45 DEFINE_EVENT(rtc_time_alarm_class, rtc_set_alarm,
47 TP_PROTO(time64_t secs, int err),
49 TP_ARGS(secs, err)
52 DEFINE_EVENT(rtc_time_alarm_class, rtc_read_alarm,
54 TP_PROTO(time64_t secs, int err),
56 TP_ARGS(secs, err)
59 TRACE_EVENT(rtc_irq_set_freq,
61 TP_PROTO(int freq, int err),
63 TP_ARGS(freq, err),
65 TP_STRUCT__entry(
66 __field(int, freq)
67 __field(int, err)
70 TP_fast_assign(
71 __entry->freq = freq;
72 __entry->err = err;
75 TP_printk("set RTC periodic IRQ frequency:%u (%d)",
76 __entry->freq, __entry->err
80 TRACE_EVENT(rtc_irq_set_state,
82 TP_PROTO(int enabled, int err),
84 TP_ARGS(enabled, err),
86 TP_STRUCT__entry(
87 __field(int, enabled)
88 __field(int, err)
91 TP_fast_assign(
92 __entry->enabled = enabled;
93 __entry->err = err;
96 TP_printk("%s RTC 2^N Hz periodic IRQs (%d)",
97 __entry->enabled ? "enable" : "disable",
98 __entry->err
102 TRACE_EVENT(rtc_alarm_irq_enable,
104 TP_PROTO(unsigned int enabled, int err),
106 TP_ARGS(enabled, err),
108 TP_STRUCT__entry(
109 __field(unsigned int, enabled)
110 __field(int, err)
113 TP_fast_assign(
114 __entry->enabled = enabled;
115 __entry->err = err;
118 TP_printk("%s RTC alarm IRQ (%d)",
119 __entry->enabled ? "enable" : "disable",
120 __entry->err
124 DECLARE_EVENT_CLASS(rtc_offset_class,
126 TP_PROTO(long offset, int err),
128 TP_ARGS(offset, err),
130 TP_STRUCT__entry(
131 __field(long, offset)
132 __field(int, err)
135 TP_fast_assign(
136 __entry->offset = offset;
137 __entry->err = err;
140 TP_printk("RTC offset: %ld (%d)",
141 __entry->offset, __entry->err
145 DEFINE_EVENT(rtc_offset_class, rtc_set_offset,
147 TP_PROTO(long offset, int err),
149 TP_ARGS(offset, err)
152 DEFINE_EVENT(rtc_offset_class, rtc_read_offset,
154 TP_PROTO(long offset, int err),
156 TP_ARGS(offset, err)
159 DECLARE_EVENT_CLASS(rtc_timer_class,
161 TP_PROTO(struct rtc_timer *timer),
163 TP_ARGS(timer),
165 TP_STRUCT__entry(
166 __field(struct rtc_timer *, timer)
167 __field(ktime_t, expires)
168 __field(ktime_t, period)
171 TP_fast_assign(
172 __entry->timer = timer;
173 __entry->expires = timer->node.expires;
174 __entry->period = timer->period;
177 TP_printk("RTC timer:(%p) expires:%lld period:%lld",
178 __entry->timer, __entry->expires, __entry->period
182 DEFINE_EVENT(rtc_timer_class, rtc_timer_enqueue,
184 TP_PROTO(struct rtc_timer *timer),
186 TP_ARGS(timer)
189 DEFINE_EVENT(rtc_timer_class, rtc_timer_dequeue,
191 TP_PROTO(struct rtc_timer *timer),
193 TP_ARGS(timer)
196 DEFINE_EVENT(rtc_timer_class, rtc_timer_fired,
198 TP_PROTO(struct rtc_timer *timer),
200 TP_ARGS(timer)
203 #endif /* _TRACE_RTC_H */
205 /* This part must be outside protection */
206 #include <trace/define_trace.h>