Commit Graph

4 Commits

Author SHA1 Message Date
Mikhail Zaslonko
f1f43bf355 s390dbf: support s390 debug feature version 3
With kernel commit <0990d836cecb> ("s390/debug: debug feature version 3"),
the __debug_entry structure has been modified by:
  - removing redundant union
  - expanding microseconds timestamp to 60 bits and storing it in the
    absolute Unix time format taking Epoch Index into account
  - expanding cpuid field to 16 bits
Current crash patch aims to:
  - define debug_entry_v3_t data type for new debug entry structure
    and process V3 debug entries accordingly
  - adjust debug entries header output by setting minimum width for cpuid
    to 4 digits and expanding function name width to 26 characters
  - adjust output alignment for the header and debug entries
  - minor code cleanup

 [ lijiang: modify the code indent, warning and patch log. ]

Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
2020-08-18 19:10:02 +08:00
Mikhail Zaslonko
b9629386aa s390dbf: remove raw-view from s390dbf
With kernel commit <ecb1ff6833c4> ("s390/debug: remove raw view"), the
raw-view is no longer supported by s390 debug feature.

Since there has never been a single user of the raw-view, remove it from
crash as well.

Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
2020-08-18 17:30:58 +08:00
Dave Anderson
aad69086a9 Fix the s390dbf time stamps for S390X kernel versions 4.11 and 4.14.
With kernel commit ea417aa8a38bc7db ("s390/debug: make debug event
time stamps relative to the boot TOD clock") for s390dbf time is
stored relative to the kernel boot time.  In order to still show
absolute time since 1970 we have to detect those kernels and re-add
the boot time before printing the records.  We can use the
tod_to_timeval() symbol to check for those kernels because the
patch has removed the symbol.  With kernel commit 6e2ef5e4f6cc5734
("s390/time: add support for the TOD clock epoch extension")
the symbol name for storing the boot time has changed from
"sched_clock_base_cc" to "tod_clock_base".  This commit is currently
on the s390 features branch and will be integrated in Linux 4.14.
(holzheu@linux.vnet.ibm.com)
2017-08-08 14:41:01 -04:00
Dave Anderson
03e3937ec7 Initial commit: crash-7.0.4 2014-01-28 16:46:11 -05:00