linux/arch/s390/include/asm/trace_clock.h
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

14 lines
316 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_S390_TRACE_CLOCK_H
#define _ASM_S390_TRACE_CLOCK_H
#include <linux/compiler.h>
#include <linux/types.h>
u64 notrace trace_clock_s390_tod(void);
#define ARCH_TRACE_CLOCKS \
{ trace_clock_s390_tod, "s390-tod", .in_ns = 0 },
#endif /* _ASM_S390_TRACE_CLOCK_H */