mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04: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>
13 lines
293 B
C
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();
|
|
}
|