Skip to content

Commit 2951580

Browse files
Sebastian Andrzej SiewiorKAGA-KOKO
authored andcommitted
tracing/timer: Add missing hrtimer modes to decode_hrtimer_mode().
The trace output for the HRTIMER_MODE_.*_HARD modes is seen as a number since these modes are not decoded. The author was not aware of the fancy decoding function which makes the life easier. Extend decode_hrtimer_mode() with the additional HRTIMER_MODE_.*_HARD modes. Fixes: ae6683d ("hrtimer: Introduce HARD expiry mode") Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Link: https://lore.kernel.org/r/20230418143854.8vHWQKLM@linutronix.de
1 parent 892f439 commit 2951580

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/trace/events/timer.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ DEFINE_EVENT(timer_class, timer_cancel,
158158
{ HRTIMER_MODE_ABS_SOFT, "ABS|SOFT" }, \
159159
{ HRTIMER_MODE_REL_SOFT, "REL|SOFT" }, \
160160
{ HRTIMER_MODE_ABS_PINNED_SOFT, "ABS|PINNED|SOFT" }, \
161-
{ HRTIMER_MODE_REL_PINNED_SOFT, "REL|PINNED|SOFT" })
161+
{ HRTIMER_MODE_REL_PINNED_SOFT, "REL|PINNED|SOFT" }, \
162+
{ HRTIMER_MODE_ABS_HARD, "ABS|HARD" }, \
163+
{ HRTIMER_MODE_REL_HARD, "REL|HARD" }, \
164+
{ HRTIMER_MODE_ABS_PINNED_HARD, "ABS|PINNED|HARD" }, \
165+
{ HRTIMER_MODE_REL_PINNED_HARD, "REL|PINNED|HARD" })
162166

163167
/**
164168
* hrtimer_init - called when the hrtimer is initialized

0 commit comments

Comments
 (0)