Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

time/jiffies: Mark jiffies_64_to_clock_t() notrace

The trace_clock_jiffies() function that handles the "uptime" clock for
tracing calls jiffies_64_to_clock_t(). This causes the function tracer to
constantly recurse when the tracing clock is set to "uptime". Mark it
notrace to prevent unnecessary recursion when using the "uptime" clock.

Fixes: 58d4e21e50ff3 ("tracing: Fix wraparound problems in "uptime" trace clock")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260306212403.72270bb2@robin

authored by

Steven Rostedt and committed by
Thomas Gleixner
755a648e 1f318b96

+1 -1
+1 -1
kernel/time/time.c
··· 697 697 * 698 698 * Return: jiffies_64 value converted to 64-bit "clock_t" (CLOCKS_PER_SEC) 699 699 */ 700 - u64 jiffies_64_to_clock_t(u64 x) 700 + notrace u64 jiffies_64_to_clock_t(u64 x) 701 701 { 702 702 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 703 703 # if HZ < USER_HZ