tracing/timers: Rename the hrtimer_init event to hrtimer_setup
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:55:21 +0000 (11:55 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 5 Apr 2025 08:30:17 +0000 (10:30 +0200)
The function hrtimer_init() doesn't exist anymore. It was replaced by
hrtimer_setup().

Thus, rename the hrtimer_init trace event to hrtimer_setup to keep it
consistent.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/all/cba84c3d853c5258aa3a262363a6eac08e2c7afc.1738746927.git.namcao@linutronix.de
Documentation/trace/ftrace.rst
include/trace/events/timer.h
kernel/time/hrtimer.c
tools/perf/tests/shell/trace_btf_enum.sh

index 2b74f96d09d531aef703ff40af345ea48fabe476..c9e88bf657093e87dcef5a9bd838535dbff2d290 100644 (file)
@@ -3077,7 +3077,7 @@ Notice that we lost the sys_nanosleep.
   # cat set_ftrace_filter
   hrtimer_run_queues
   hrtimer_run_pending
-  hrtimer_init
+  hrtimer_setup
   hrtimer_cancel
   hrtimer_try_to_cancel
   hrtimer_forward
@@ -3115,7 +3115,7 @@ Again, now we want to append.
   # cat set_ftrace_filter
   hrtimer_run_queues
   hrtimer_run_pending
-  hrtimer_init
+  hrtimer_setup
   hrtimer_cancel
   hrtimer_try_to_cancel
   hrtimer_forward
index f8c906be4cd0d8f868f91f70cedf608f3048f7a4..1641ae3e6ca060734088da45d6a63e8fc966702b 100644 (file)
@@ -185,12 +185,12 @@ TRACE_EVENT(timer_base_idle,
                { HRTIMER_MODE_REL_PINNED_HARD, "REL|PINNED|HARD" })
 
 /**
- * hrtimer_init - called when the hrtimer is initialized
+ * hrtimer_setup - called when the hrtimer is initialized
  * @hrtimer:   pointer to struct hrtimer
  * @clockid:   the hrtimers clock
  * @mode:      the hrtimers mode
  */
-TRACE_EVENT(hrtimer_init,
+TRACE_EVENT(hrtimer_setup,
 
        TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid,
                 enum hrtimer_mode mode),
index 4bf91fa2d9bd8e8cf5533194f33b67c7354b5550..517ee2590a29e57356ef96cae80ef6c34aa6eba1 100644 (file)
@@ -468,14 +468,14 @@ static inline void debug_hrtimer_deactivate(struct hrtimer *timer) { }
 static inline void debug_setup(struct hrtimer *timer, clockid_t clockid, enum hrtimer_mode mode)
 {
        debug_hrtimer_init(timer);
-       trace_hrtimer_init(timer, clockid, mode);
+       trace_hrtimer_setup(timer, clockid, mode);
 }
 
 static inline void debug_setup_on_stack(struct hrtimer *timer, clockid_t clockid,
                                        enum hrtimer_mode mode)
 {
        debug_hrtimer_init_on_stack(timer);
-       trace_hrtimer_init(timer, clockid, mode);
+       trace_hrtimer_setup(timer, clockid, mode);
 }
 
 static inline void debug_activate(struct hrtimer *timer,
index 60b3fa254cf6c7bc4323ca47172dfc1e1b3c1ba5..f0b49f7fb57dfcc0c8d367693ffc420213fc2025 100755 (executable)
@@ -6,7 +6,7 @@ err=0
 set -e
 
 syscall="landlock_add_rule"
-non_syscall="timer:hrtimer_init,timer:hrtimer_start"
+non_syscall="timer:hrtimer_setup,timer:hrtimer_start"
 
 TESTPROG="perf test -w landlock"