diff options
author | Vincent Donnefort <vdonnefort@google.com> | 2024-09-11 10:30:20 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-10-02 17:10:41 +0200 |
commit | 8102c4daf44ab86c2d2226a8136bec905d6e2bd1 (patch) | |
tree | 42b655d255d7d1a999bc81619caad5466b43531f /include/linux/timekeeping.h | |
parent | 9852d85ec9d492ebef56dc5f229416c925758edc (diff) | |
download | linux-8102c4daf44ab86c2d2226a8136bec905d6e2bd1.tar.gz linux-8102c4daf44ab86c2d2226a8136bec905d6e2bd1.tar.bz2 linux-8102c4daf44ab86c2d2226a8136bec905d6e2bd1.zip |
timekeeping: Add the boot clock to system time snapshot
For tracing purpose, the boot clock is interesting as it doesn't stop on
suspend. Export it as part of the time snapshot. This will later allow
the hypervisor to add boot clock timestamps to its events.
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/all/20240911093029.3279154-5-vdonnefort@google.com
Diffstat (limited to 'include/linux/timekeeping.h')
-rw-r--r-- | include/linux/timekeeping.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index fc12a9ba2c88..e85c27347e44 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -275,6 +275,7 @@ struct ktime_timestamps { * counter value * @cycles: Clocksource counter value to produce the system times * @real: Realtime system time + * @boot: Boot time * @raw: Monotonic raw system time * @cs_id: Clocksource ID * @clock_was_set_seq: The sequence number of clock-was-set events @@ -283,6 +284,7 @@ struct ktime_timestamps { struct system_time_snapshot { u64 cycles; ktime_t real; + ktime_t boot; ktime_t raw; enum clocksource_ids cs_id; unsigned int clock_was_set_seq; |