hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/trace/events/timer.h
....@@ -73,7 +73,7 @@
7373 __entry->flags = flags;
7474 ),
7575
76
- TP_printk("timer=%p function=%pf expires=%lu [timeout=%ld] cpu=%u idx=%u flags=%s",
76
+ TP_printk("timer=%p function=%ps expires=%lu [timeout=%ld] cpu=%u idx=%u flags=%s",
7777 __entry->timer, __entry->function, __entry->expires,
7878 (long)__entry->expires - __entry->now,
7979 __entry->flags & TIMER_CPUMASK,
....@@ -89,23 +89,27 @@
8989 */
9090 TRACE_EVENT(timer_expire_entry,
9191
92
- TP_PROTO(struct timer_list *timer),
92
+ TP_PROTO(struct timer_list *timer, unsigned long baseclk),
9393
94
- TP_ARGS(timer),
94
+ TP_ARGS(timer, baseclk),
9595
9696 TP_STRUCT__entry(
9797 __field( void *, timer )
9898 __field( unsigned long, now )
9999 __field( void *, function)
100
+ __field( unsigned long, baseclk )
100101 ),
101102
102103 TP_fast_assign(
103104 __entry->timer = timer;
104105 __entry->now = jiffies;
105106 __entry->function = timer->function;
107
+ __entry->baseclk = baseclk;
106108 ),
107109
108
- TP_printk("timer=%p function=%pf now=%lu", __entry->timer, __entry->function,__entry->now)
110
+ TP_printk("timer=%p function=%ps now=%lu baseclk=%lu",
111
+ __entry->timer, __entry->function, __entry->now,
112
+ __entry->baseclk)
109113 );
110114
111115 /**
....@@ -210,7 +214,7 @@
210214 __entry->mode = mode;
211215 ),
212216
213
- TP_printk("hrtimer=%p function=%pf expires=%llu softexpires=%llu "
217
+ TP_printk("hrtimer=%p function=%ps expires=%llu softexpires=%llu "
214218 "mode=%s", __entry->hrtimer, __entry->function,
215219 (unsigned long long) __entry->expires,
216220 (unsigned long long) __entry->softexpires,
....@@ -243,7 +247,8 @@
243247 __entry->function = hrtimer->function;
244248 ),
245249
246
- TP_printk("hrtimer=%p function=%pf now=%llu", __entry->hrtimer, __entry->function,
250
+ TP_printk("hrtimer=%p function=%ps now=%llu",
251
+ __entry->hrtimer, __entry->function,
247252 (unsigned long long) __entry->now)
248253 );
249254
....@@ -298,7 +303,7 @@
298303 */
299304 TRACE_EVENT(itimer_state,
300305
301
- TP_PROTO(int which, const struct itimerval *const value,
306
+ TP_PROTO(int which, const struct itimerspec64 *const value,
302307 unsigned long long expires),
303308
304309 TP_ARGS(which, value, expires),
....@@ -307,24 +312,24 @@
307312 __field( int, which )
308313 __field( unsigned long long, expires )
309314 __field( long, value_sec )
310
- __field( long, value_usec )
315
+ __field( long, value_nsec )
311316 __field( long, interval_sec )
312
- __field( long, interval_usec )
317
+ __field( long, interval_nsec )
313318 ),
314319
315320 TP_fast_assign(
316321 __entry->which = which;
317322 __entry->expires = expires;
318323 __entry->value_sec = value->it_value.tv_sec;
319
- __entry->value_usec = value->it_value.tv_usec;
324
+ __entry->value_nsec = value->it_value.tv_nsec;
320325 __entry->interval_sec = value->it_interval.tv_sec;
321
- __entry->interval_usec = value->it_interval.tv_usec;
326
+ __entry->interval_nsec = value->it_interval.tv_nsec;
322327 ),
323328
324
- TP_printk("which=%d expires=%llu it_value=%ld.%ld it_interval=%ld.%ld",
329
+ TP_printk("which=%d expires=%llu it_value=%ld.%06ld it_interval=%ld.%06ld",
325330 __entry->which, __entry->expires,
326
- __entry->value_sec, __entry->value_usec,
327
- __entry->interval_sec, __entry->interval_usec)
331
+ __entry->value_sec, __entry->value_nsec / NSEC_PER_USEC,
332
+ __entry->interval_sec, __entry->interval_nsec / NSEC_PER_USEC)
328333 );
329334
330335 /**
....@@ -362,7 +367,8 @@
362367 tick_dep_name(POSIX_TIMER) \
363368 tick_dep_name(PERF_EVENTS) \
364369 tick_dep_name(SCHED) \
365
- tick_dep_name_end(CLOCK_UNSTABLE)
370
+ tick_dep_name(CLOCK_UNSTABLE) \
371
+ tick_dep_name_end(RCU)
366372
367373 #undef tick_dep_name
368374 #undef tick_dep_mask_name