[PATCH v3 07/26] timekeeping: Register tk_data into meminspect
From: Mukesh Ojha
Date: Wed Jul 08 2026 - 01:36:25 EST
Annotate timekeeper_data into meminspect for debugging:
- tk_data (timekeeper_data array)
Register the timekeeper_data array using MEMINSPECT_NAMED_ENTRY
with the "tk_data" identifier. Update the meminspect ID enum and
the minidump backend string table accordingly.
Signed-off-by: Mukesh Ojha <mukesh.ojha@xxxxxxxxxxxxxxxx>
---
include/linux/meminspect.h | 1 +
kernel/time/timekeeping.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/include/linux/meminspect.h b/include/linux/meminspect.h
index a9eb93c6ea2f..b64ca614b243 100644
--- a/include/linux/meminspect.h
+++ b/include/linux/meminspect.h
@@ -49,6 +49,7 @@ enum meminspect_uid {
MEMINSPECT_ID_kallsyms_markers,
MEMINSPECT_ID_kallsyms_seqs_of_names,
MEMINSPECT_ID_swapper_pg_dir,
+ MEMINSPECT_ID_tk_data,
MEMINSPECT_ID_DYNAMIC,
MEMINSPECT_ID_MAX = 201,
};
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index 5985d6652c1d..8a5da24d8678 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -14,6 +14,7 @@
#include <linux/random.h>
#include <linux/sched/clock.h>
#include <linux/sched/loadavg.h>
+#include <linux/meminspect.h>
#include <linux/static_key.h>
#include <linux/stop_machine.h>
#include <linux/syscore_ops.h>
@@ -53,6 +54,7 @@ struct tk_data {
} ____cacheline_aligned;
static struct tk_data timekeeper_data[TIMEKEEPERS_MAX];
+MEMINSPECT_NAMED_ENTRY(tk_data, timekeeper_data);
/* The core timekeeper */
#define tk_core (timekeeper_data[TIMEKEEPER_CORE])
--
2.53.0