]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/debug: make debug event time stamps relative to the boot TOD clock
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 16 Nov 2016 08:48:41 +0000 (09:48 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 7 Feb 2017 06:27:13 +0000 (07:27 +0100)
commitea417aa8a38bc7db929281d6dc4b671e75f51844
tree61f70f0f578d9ce66d40bcec03f727b7df256d76
parent8676caa4fb7fc02b2c76842a0024919d0caa4b8d
s390/debug: make debug event time stamps relative to the boot TOD clock

The debug features currently uses absolute TOD time stamps for the
debug events. Given that the TOD clock can jump forward and backward
due to STP sync checks the order of debug events can get obfuscated.

Replace the absolute TOD time stamps with a delta to the IPL time
stamp. On a STP sync check the TOD clock correction is added to
the IPL time stamp as well to make the deltas unaffected by STP
sync check.

The readout of the debug feature entries will convert the deltas
back to absolute time stamps based on the Unix epoch.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/timex.h
arch/s390/kernel/debug.c
arch/s390/kernel/time.c