console: avoid printing no or null time stamps
authorJan Beulich <jbeulich@suse.com>
Mon, 16 Jul 2018 13:12:19 +0000 (15:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Jul 2018 13:12:19 +0000 (15:12 +0200)
commitda3d55ae67225798c2ad8f42af2f432f6f2b2214
tree7b96842c088fed1153ff2e2c903844d4a13978b0
parent565efbc8a7145c47379543edfcc84fc4f4dd6d83
console: avoid printing no or null time stamps

During early boot timestamps aren't very useful, as they're all zero
(in "boot" mode) or absent altogether (in "date" and "datems" modes).
Log "boot" format timestamps when the date formats aren't available yet,
and log raw timestamps when boot ones are still all zero. Also add a
"raw" mode.

For the ARM side get_cycles() to produce a meaningful value, ARM's
cycle_t gets changed to uint64_t.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
docs/misc/xen-command-line.markdown
xen/drivers/char/console.c
xen/include/asm-arm/time.h
xen/include/asm-x86/time.h