Files
linux/arch/s390/kernel/trace_clock.c
Sven Schnelle 29eb8a7b6e s390/tracing: Add s390-tod clock
In order to allow comparing trace timestamps between different
systems or virtual machines on s390, add a s390-tod trace clock.
This clock just uses the returned TOD clock value from stcke
directly.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
2026-05-26 08:15:41 +02:00

13 lines
293 B
C

// SPDX-License-Identifier: GPL-2.0
#include <linux/trace_clock.h>
#include <linux/timex.h>
/*
* trace_clock_s390_tod(): trace clock based on the s390 TOD clock
*
* Unlike the other clocks, this is not in nanoseconds.
*/
u64 notrace trace_clock_s390_tod(void)
{
return get_tod_clock();
}