Skip to contentSkip to conversation

hrtimer: Update decode_hrtimer_mode() for HARD expiry mode

PATCH New Zenghui Yu 1 participant 1 message Jun 24, 2021

Subsystems (2)
lore
Share & tools
lore

Zenghui Yu

author
#0 lore raw

PATCH 1/1 hrtimer: Update decode_hrtimer_mode() for HARD expiry mode

Update the decoding of hrtimer mode in tracepoints for those must be expired in hard interrupt context, which looks like an oversight from commit ae6683d81589 ("hrtimer: Introduce HARD expiry mode").

---
 include/trace/events/timer.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
include/trace/events/timer.h +5 -1
index 6ad031c71be7..187cbc47c7df 100644
@@ -156,7 +156,11 @@ DEFINE_EVENT(timer_class, timer_cancel,
 		{ HRTIMER_MODE_ABS_SOFT,	"ABS|SOFT"	},	\
 		{ HRTIMER_MODE_REL_SOFT,	"REL|SOFT"	},	\
 		{ HRTIMER_MODE_ABS_PINNED_SOFT,	"ABS|PINNED|SOFT" },	\
-		{ HRTIMER_MODE_REL_PINNED_SOFT,	"REL|PINNED|SOFT" })
+		{ HRTIMER_MODE_REL_PINNED_SOFT,	"REL|PINNED|SOFT" },	\
+		{ HRTIMER_MODE_ABS_HARD,	"ABS|HARD"	},	\
+		{ HRTIMER_MODE_REL_HARD,	"REL|HARD"	},	\
+		{ HRTIMER_MODE_ABS_PINNED_HARD,	"ABS|PINNED|HARD" },	\
+		{ HRTIMER_MODE_REL_PINNED_HARD,	"REL|PINNED|HARD" })
 
 /**
  * hrtimer_init - called when the hrtimer is initialized
Signature · 1 line
2.19.1