aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna-Maria Gleixner <anna-maria@linutronix.de>2019-03-21 08:09:20 -0400
committerThomas Gleixner <tglx@linutronix.de>2019-03-24 15:29:33 -0400
commit6849cbb0f9a8dbc1ba56e9abc6955613103e01e3 (patch)
tree4f95a2471e83305ec139e3d7400db58a5f4ff94d
parentdc1e7dc5ac6254ba0502323381a7ec847e408f1d (diff)
timer/trace: Replace deprecated vsprintf pointer extension %pf by %ps
Since commit 04b8eb7a4ccd ("symbol lookup: introduce dereference_symbol_descriptor()") %pf is deprecated, because %ps is smart enough to handle function pointer dereference on platforms where such a dereference is required. While at it add proper line breaks to stay in the 80 character limit. Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: fweisbec@gmail.com Cc: peterz@infradead.org Cc: Steven Rostedt <rostedt@goodmis.org> Link: https://lkml.kernel.org/r/20190321120921.16463-4-anna-maria@linutronix.de
-rw-r--r--include/trace/events/timer.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/trace/events/timer.h b/include/trace/events/timer.h
index a57e4ee989d6..da975d69c453 100644
--- a/include/trace/events/timer.h
+++ b/include/trace/events/timer.h
@@ -73,7 +73,7 @@ TRACE_EVENT(timer_start,
73 __entry->flags = flags; 73 __entry->flags = flags;
74 ), 74 ),
75 75
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",
77 __entry->timer, __entry->function, __entry->expires, 77 __entry->timer, __entry->function, __entry->expires,
78 (long)__entry->expires - __entry->now, 78 (long)__entry->expires - __entry->now,
79 __entry->flags & TIMER_CPUMASK, 79 __entry->flags & TIMER_CPUMASK,
@@ -105,7 +105,8 @@ TRACE_EVENT(timer_expire_entry,
105 __entry->function = timer->function; 105 __entry->function = timer->function;
106 ), 106 ),
107 107
108 TP_printk("timer=%p function=%pf now=%lu", __entry->timer, __entry->function,__entry->now) 108 TP_printk("timer=%p function=%ps now=%lu",
109 __entry->timer, __entry->function, __entry->now)
109); 110);
110 111
111/** 112/**
@@ -210,7 +211,7 @@ TRACE_EVENT(hrtimer_start,
210 __entry->mode = mode; 211 __entry->mode = mode;
211 ), 212 ),
212 213
213 TP_printk("hrtimer=%p function=%pf expires=%llu softexpires=%llu " 214 TP_printk("hrtimer=%p function=%ps expires=%llu softexpires=%llu "
214 "mode=%s", __entry->hrtimer, __entry->function, 215 "mode=%s", __entry->hrtimer, __entry->function,
215 (unsigned long long) __entry->expires, 216 (unsigned long long) __entry->expires,
216 (unsigned long long) __entry->softexpires, 217 (unsigned long long) __entry->softexpires,
@@ -243,7 +244,8 @@ TRACE_EVENT(hrtimer_expire_entry,
243 __entry->function = hrtimer->function; 244 __entry->function = hrtimer->function;
244 ), 245 ),
245 246
246 TP_printk("hrtimer=%p function=%pf now=%llu", __entry->hrtimer, __entry->function, 247 TP_printk("hrtimer=%p function=%ps now=%llu",
248 __entry->hrtimer, __entry->function,
247 (unsigned long long) __entry->now) 249 (unsigned long long) __entry->now)
248); 250);
249 251