mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] hrtimer: Update decode_hrtimer_mode() for HARD expiry mode
@ 2021-06-24 14:04 Zenghui Yu
  0 siblings, 0 replies; only message in thread
From: Zenghui Yu @ 2021-06-24 14:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: tglx, rostedt, mingo, rdunlap, wanghaibin.wang, Zenghui Yu

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").

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
 include/trace/events/timer.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/trace/events/timer.h b/include/trace/events/timer.h
index 6ad031c71be7..187cbc47c7df 100644
--- a/include/trace/events/timer.h
+++ b/include/trace/events/timer.h
@@ -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
-- 
2.19.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-24 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24 14:04 [PATCH] hrtimer: Update decode_hrtimer_mode() for HARD expiry mode Zenghui Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®