Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 1 | #undef TRACE_SYSTEM |
| 2 | #define TRACE_SYSTEM timer |
| 3 | |
| 4 | #if !defined(_TRACE_TIMER_H) || defined(TRACE_HEADER_MULTI_READ) |
| 5 | #define _TRACE_TIMER_H |
| 6 | |
| 7 | #include <linux/tracepoint.h> |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 8 | #include <linux/hrtimer.h> |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 9 | #include <linux/timer.h> |
| 10 | |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 11 | DECLARE_EVENT_CLASS(timer_class, |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 12 | |
| 13 | TP_PROTO(struct timer_list *timer), |
| 14 | |
| 15 | TP_ARGS(timer), |
| 16 | |
| 17 | TP_STRUCT__entry( |
| 18 | __field( void *, timer ) |
| 19 | ), |
| 20 | |
| 21 | TP_fast_assign( |
| 22 | __entry->timer = timer; |
| 23 | ), |
| 24 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 25 | TP_printk("timer=%p", __entry->timer) |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 26 | ); |
| 27 | |
| 28 | /** |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 29 | * timer_init - called when the timer is initialized |
| 30 | * @timer: pointer to struct timer_list |
| 31 | */ |
| 32 | DEFINE_EVENT(timer_class, timer_init, |
| 33 | |
| 34 | TP_PROTO(struct timer_list *timer), |
| 35 | |
| 36 | TP_ARGS(timer) |
| 37 | ); |
| 38 | |
| 39 | /** |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 40 | * timer_start - called when the timer is started |
| 41 | * @timer: pointer to struct timer_list |
| 42 | * @expires: the timers expiry time |
| 43 | */ |
| 44 | TRACE_EVENT(timer_start, |
| 45 | |
Badhri Jagan Sridharan | a2cd6ea | 2012-07-18 15:46:01 -0700 | [diff] [blame] | 46 | TP_PROTO(struct timer_list *timer, |
| 47 | unsigned long expires, char deferrable), |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 48 | |
Badhri Jagan Sridharan | a2cd6ea | 2012-07-18 15:46:01 -0700 | [diff] [blame] | 49 | TP_ARGS(timer, expires, deferrable), |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 50 | |
| 51 | TP_STRUCT__entry( |
| 52 | __field( void *, timer ) |
| 53 | __field( void *, function ) |
| 54 | __field( unsigned long, expires ) |
| 55 | __field( unsigned long, now ) |
Badhri Jagan Sridharan | a2cd6ea | 2012-07-18 15:46:01 -0700 | [diff] [blame] | 56 | __field(char, deferrable) |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 57 | ), |
| 58 | |
| 59 | TP_fast_assign( |
| 60 | __entry->timer = timer; |
| 61 | __entry->function = timer->function; |
| 62 | __entry->expires = expires; |
| 63 | __entry->now = jiffies; |
Badhri Jagan Sridharan | a2cd6ea | 2012-07-18 15:46:01 -0700 | [diff] [blame] | 64 | __entry->deferrable = deferrable; |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 65 | ), |
| 66 | |
Badhri Jagan Sridharan | a2cd6ea | 2012-07-18 15:46:01 -0700 | [diff] [blame] | 67 | TP_printk("timer=%p function=%pf expires=%lu [timeout=%ld] defer=%c", |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 68 | __entry->timer, __entry->function, __entry->expires, |
Badhri Jagan Sridharan | a2cd6ea | 2012-07-18 15:46:01 -0700 | [diff] [blame] | 69 | (long)__entry->expires - __entry->now, __entry->deferrable) |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 70 | ); |
| 71 | |
| 72 | /** |
| 73 | * timer_expire_entry - called immediately before the timer callback |
| 74 | * @timer: pointer to struct timer_list |
| 75 | * |
| 76 | * Allows to determine the timer latency. |
| 77 | */ |
| 78 | TRACE_EVENT(timer_expire_entry, |
| 79 | |
| 80 | TP_PROTO(struct timer_list *timer), |
| 81 | |
| 82 | TP_ARGS(timer), |
| 83 | |
| 84 | TP_STRUCT__entry( |
| 85 | __field( void *, timer ) |
| 86 | __field( unsigned long, now ) |
Arjan van de Ven | ede1b42 | 2010-08-18 15:33:13 -0700 | [diff] [blame] | 87 | __field( void *, function) |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 88 | ), |
| 89 | |
| 90 | TP_fast_assign( |
| 91 | __entry->timer = timer; |
| 92 | __entry->now = jiffies; |
Arjan van de Ven | ede1b42 | 2010-08-18 15:33:13 -0700 | [diff] [blame] | 93 | __entry->function = timer->function; |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 94 | ), |
| 95 | |
Arjan van de Ven | ede1b42 | 2010-08-18 15:33:13 -0700 | [diff] [blame] | 96 | TP_printk("timer=%p function=%pf now=%lu", __entry->timer, __entry->function,__entry->now) |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 97 | ); |
| 98 | |
| 99 | /** |
| 100 | * timer_expire_exit - called immediately after the timer callback returns |
| 101 | * @timer: pointer to struct timer_list |
| 102 | * |
| 103 | * When used in combination with the timer_expire_entry tracepoint we can |
| 104 | * determine the runtime of the timer callback function. |
| 105 | * |
| 106 | * NOTE: Do NOT derefernce timer in TP_fast_assign. The pointer might |
| 107 | * be invalid. We solely track the pointer. |
| 108 | */ |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 109 | DEFINE_EVENT(timer_class, timer_expire_exit, |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 110 | |
| 111 | TP_PROTO(struct timer_list *timer), |
| 112 | |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 113 | TP_ARGS(timer) |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 114 | ); |
| 115 | |
| 116 | /** |
| 117 | * timer_cancel - called when the timer is canceled |
| 118 | * @timer: pointer to struct timer_list |
| 119 | */ |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 120 | DEFINE_EVENT(timer_class, timer_cancel, |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 121 | |
| 122 | TP_PROTO(struct timer_list *timer), |
| 123 | |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 124 | TP_ARGS(timer) |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 125 | ); |
| 126 | |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 127 | /** |
| 128 | * hrtimer_init - called when the hrtimer is initialized |
| 129 | * @timer: pointer to struct hrtimer |
| 130 | * @clockid: the hrtimers clock |
| 131 | * @mode: the hrtimers mode |
| 132 | */ |
| 133 | TRACE_EVENT(hrtimer_init, |
| 134 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 135 | TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid, |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 136 | enum hrtimer_mode mode), |
| 137 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 138 | TP_ARGS(hrtimer, clockid, mode), |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 139 | |
| 140 | TP_STRUCT__entry( |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 141 | __field( void *, hrtimer ) |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 142 | __field( clockid_t, clockid ) |
| 143 | __field( enum hrtimer_mode, mode ) |
| 144 | ), |
| 145 | |
| 146 | TP_fast_assign( |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 147 | __entry->hrtimer = hrtimer; |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 148 | __entry->clockid = clockid; |
| 149 | __entry->mode = mode; |
| 150 | ), |
| 151 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 152 | TP_printk("hrtimer=%p clockid=%s mode=%s", __entry->hrtimer, |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 153 | __entry->clockid == CLOCK_REALTIME ? |
| 154 | "CLOCK_REALTIME" : "CLOCK_MONOTONIC", |
| 155 | __entry->mode == HRTIMER_MODE_ABS ? |
| 156 | "HRTIMER_MODE_ABS" : "HRTIMER_MODE_REL") |
| 157 | ); |
| 158 | |
| 159 | /** |
| 160 | * hrtimer_start - called when the hrtimer is started |
| 161 | * @timer: pointer to struct hrtimer |
| 162 | */ |
| 163 | TRACE_EVENT(hrtimer_start, |
| 164 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 165 | TP_PROTO(struct hrtimer *hrtimer), |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 166 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 167 | TP_ARGS(hrtimer), |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 168 | |
| 169 | TP_STRUCT__entry( |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 170 | __field( void *, hrtimer ) |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 171 | __field( void *, function ) |
| 172 | __field( s64, expires ) |
| 173 | __field( s64, softexpires ) |
| 174 | ), |
| 175 | |
| 176 | TP_fast_assign( |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 177 | __entry->hrtimer = hrtimer; |
| 178 | __entry->function = hrtimer->function; |
| 179 | __entry->expires = hrtimer_get_expires(hrtimer).tv64; |
| 180 | __entry->softexpires = hrtimer_get_softexpires(hrtimer).tv64; |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 181 | ), |
| 182 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 183 | TP_printk("hrtimer=%p function=%pf expires=%llu softexpires=%llu", |
| 184 | __entry->hrtimer, __entry->function, |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 185 | (unsigned long long)ktime_to_ns((ktime_t) { |
| 186 | .tv64 = __entry->expires }), |
| 187 | (unsigned long long)ktime_to_ns((ktime_t) { |
| 188 | .tv64 = __entry->softexpires })) |
| 189 | ); |
| 190 | |
| 191 | /** |
| 192 | * htimmer_expire_entry - called immediately before the hrtimer callback |
| 193 | * @timer: pointer to struct hrtimer |
| 194 | * @now: pointer to variable which contains current time of the |
| 195 | * timers base. |
| 196 | * |
| 197 | * Allows to determine the timer latency. |
| 198 | */ |
| 199 | TRACE_EVENT(hrtimer_expire_entry, |
| 200 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 201 | TP_PROTO(struct hrtimer *hrtimer, ktime_t *now), |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 202 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 203 | TP_ARGS(hrtimer, now), |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 204 | |
| 205 | TP_STRUCT__entry( |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 206 | __field( void *, hrtimer ) |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 207 | __field( s64, now ) |
Arjan van de Ven | ede1b42 | 2010-08-18 15:33:13 -0700 | [diff] [blame] | 208 | __field( void *, function) |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 209 | ), |
| 210 | |
| 211 | TP_fast_assign( |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 212 | __entry->hrtimer = hrtimer; |
| 213 | __entry->now = now->tv64; |
Arjan van de Ven | ede1b42 | 2010-08-18 15:33:13 -0700 | [diff] [blame] | 214 | __entry->function = hrtimer->function; |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 215 | ), |
| 216 | |
Arjan van de Ven | ede1b42 | 2010-08-18 15:33:13 -0700 | [diff] [blame] | 217 | TP_printk("hrtimer=%p function=%pf now=%llu", __entry->hrtimer, __entry->function, |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 218 | (unsigned long long)ktime_to_ns((ktime_t) { .tv64 = __entry->now })) |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 219 | ); |
| 220 | |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 221 | DECLARE_EVENT_CLASS(hrtimer_class, |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 222 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 223 | TP_PROTO(struct hrtimer *hrtimer), |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 224 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 225 | TP_ARGS(hrtimer), |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 226 | |
| 227 | TP_STRUCT__entry( |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 228 | __field( void *, hrtimer ) |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 229 | ), |
| 230 | |
| 231 | TP_fast_assign( |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 232 | __entry->hrtimer = hrtimer; |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 233 | ), |
| 234 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 235 | TP_printk("hrtimer=%p", __entry->hrtimer) |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 236 | ); |
| 237 | |
| 238 | /** |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 239 | * hrtimer_expire_exit - called immediately after the hrtimer callback returns |
| 240 | * @timer: pointer to struct hrtimer |
| 241 | * |
| 242 | * When used in combination with the hrtimer_expire_entry tracepoint we can |
| 243 | * determine the runtime of the callback function. |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 244 | */ |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 245 | DEFINE_EVENT(hrtimer_class, hrtimer_expire_exit, |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 246 | |
Ingo Molnar | 434a83c | 2009-10-15 11:50:39 +0200 | [diff] [blame] | 247 | TP_PROTO(struct hrtimer *hrtimer), |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 248 | |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 249 | TP_ARGS(hrtimer) |
| 250 | ); |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 251 | |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 252 | /** |
| 253 | * hrtimer_cancel - called when the hrtimer is canceled |
| 254 | * @hrtimer: pointer to struct hrtimer |
| 255 | */ |
| 256 | DEFINE_EVENT(hrtimer_class, hrtimer_cancel, |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 257 | |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 258 | TP_PROTO(struct hrtimer *hrtimer), |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 259 | |
Li Zefan | 363d0f6 | 2010-05-24 16:23:15 +0800 | [diff] [blame] | 260 | TP_ARGS(hrtimer) |
Xiao Guangrong | c6a2a17 | 2009-08-10 10:51:23 +0800 | [diff] [blame] | 261 | ); |
| 262 | |
Xiao Guangrong | 3f0a525 | 2009-08-10 10:52:30 +0800 | [diff] [blame] | 263 | /** |
| 264 | * itimer_state - called when itimer is started or canceled |
| 265 | * @which: name of the interval timer |
| 266 | * @value: the itimers value, itimer is canceled if value->it_value is |
| 267 | * zero, otherwise it is started |
| 268 | * @expires: the itimers expiry time |
| 269 | */ |
| 270 | TRACE_EVENT(itimer_state, |
| 271 | |
| 272 | TP_PROTO(int which, const struct itimerval *const value, |
| 273 | cputime_t expires), |
| 274 | |
| 275 | TP_ARGS(which, value, expires), |
| 276 | |
| 277 | TP_STRUCT__entry( |
| 278 | __field( int, which ) |
| 279 | __field( cputime_t, expires ) |
| 280 | __field( long, value_sec ) |
| 281 | __field( long, value_usec ) |
| 282 | __field( long, interval_sec ) |
| 283 | __field( long, interval_usec ) |
| 284 | ), |
| 285 | |
| 286 | TP_fast_assign( |
| 287 | __entry->which = which; |
| 288 | __entry->expires = expires; |
| 289 | __entry->value_sec = value->it_value.tv_sec; |
| 290 | __entry->value_usec = value->it_value.tv_usec; |
| 291 | __entry->interval_sec = value->it_interval.tv_sec; |
| 292 | __entry->interval_usec = value->it_interval.tv_usec; |
| 293 | ), |
| 294 | |
Thomas Gleixner | e9c0748 | 2009-12-10 13:23:19 +0100 | [diff] [blame] | 295 | TP_printk("which=%d expires=%llu it_value=%ld.%ld it_interval=%ld.%ld", |
| 296 | __entry->which, (unsigned long long)__entry->expires, |
Xiao Guangrong | 3f0a525 | 2009-08-10 10:52:30 +0800 | [diff] [blame] | 297 | __entry->value_sec, __entry->value_usec, |
| 298 | __entry->interval_sec, __entry->interval_usec) |
| 299 | ); |
| 300 | |
| 301 | /** |
| 302 | * itimer_expire - called when itimer expires |
| 303 | * @which: type of the interval timer |
| 304 | * @pid: pid of the process which owns the timer |
| 305 | * @now: current time, used to calculate the latency of itimer |
| 306 | */ |
| 307 | TRACE_EVENT(itimer_expire, |
| 308 | |
| 309 | TP_PROTO(int which, struct pid *pid, cputime_t now), |
| 310 | |
| 311 | TP_ARGS(which, pid, now), |
| 312 | |
| 313 | TP_STRUCT__entry( |
| 314 | __field( int , which ) |
| 315 | __field( pid_t, pid ) |
| 316 | __field( cputime_t, now ) |
| 317 | ), |
| 318 | |
| 319 | TP_fast_assign( |
| 320 | __entry->which = which; |
| 321 | __entry->now = now; |
| 322 | __entry->pid = pid_nr(pid); |
| 323 | ), |
| 324 | |
Thomas Gleixner | e9c0748 | 2009-12-10 13:23:19 +0100 | [diff] [blame] | 325 | TP_printk("which=%d pid=%d now=%llu", __entry->which, |
| 326 | (int) __entry->pid, (unsigned long long)__entry->now) |
Xiao Guangrong | 3f0a525 | 2009-08-10 10:52:30 +0800 | [diff] [blame] | 327 | ); |
| 328 | |
Xiao Guangrong | 2b022e3 | 2009-08-10 10:48:59 +0800 | [diff] [blame] | 329 | #endif /* _TRACE_TIMER_H */ |
| 330 | |
| 331 | /* This part must be outside protection */ |
| 332 | #include <trace/define_trace.h> |