[PATCH 00/12] hrtimer, timekeeping, tracing: various cleanups

From: Thomas Weißschuh (Schneider Electric)

Date: Wed Mar 11 2026 - 06:16:45 EST


Various, mostly trivial, cleanups and fixes to the timekeeping core and
hrtimer subsystems. These are preparations for another upcoming series,
so I'd like this to go together trough tip.

Tracing maintainers: Patch 2 touches the tracing core.

Based on tip/sched/hrtick.

---
Thomas Weißschuh (Schneider Electric) (12):
scripts/gdb: timerlist: Adapt to move of tk_core
tracing: Use explicit array size instead of sentinel elements in symbol printing
timer_list: Print offset as signed integer
timekeeping: auxclock: Consistently use raw timekeeper for tk_setup_internals()
timekeeping: Mark offsets array as const
hrtimer: Remove hrtimer_get_expires_ns()
hrtimer: Don't zero-initialize ret in hrtimer_nanosleep()
hrtimer: Drop spurious space in 'enum hrtimer_base_type'
hrtimer: Drop unnecessary pointer indirection in hrtimer_expire_entry event
hrtimer: Mark index and clockid of clock base as const
hrtimer: Remove trailing comma after HRTIMER_MAX_CLOCK_BASES
hrtimer: Add a helper to retrieve a hrtimer from its timerqueue node

include/linux/hrtimer.h | 5 ----
include/linux/hrtimer_defs.h | 8 +++---
include/linux/trace_events.h | 13 ++++++----
include/trace/events/timer.h | 7 +++---
include/trace/stages/stage3_trace_output.h | 40 +++++++++++++++---------------
kernel/time/hrtimer.c | 14 ++++++-----
kernel/time/timekeeping.c | 12 +++++----
kernel/time/timer_list.c | 4 +--
kernel/trace/trace_events_synth.c | 4 +--
kernel/trace/trace_output.c | 20 +++++++++------
kernel/trace/trace_syscalls.c | 3 +--
scripts/gdb/linux/timerlist.py | 2 +-
12 files changed, 68 insertions(+), 64 deletions(-)
---
base-commit: eef9f648fb0e92618041f019d4bdcf7ae17cb743
change-id: 20260311-hrtimer-cleanups-fd2deab892df

Best regards,
--
Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>