mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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>
14 lines
316 B
C
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 */
|