mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump: Use global header s390_dump.h
Instead of using its own DF_S390_ constants and df_s390_ structs in df_s390.h, include those from "dump/s390_dump.h" in order to minimize duplicates. Adjust the code, where required, to use <stdint> types instead of those defined in zt_common.h (e.g. use uint64_t instead of u64). Adjust zdump include statements. Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com> Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
775495c7e7
commit
7b68552359
@@ -22,6 +22,7 @@
|
||||
#define DF_S390_HDR_SIZE 0x1000
|
||||
#define DF_S390_EM_SIZE 16
|
||||
#define DF_S390_EM_MAGIC 0x44554d505f454e44ULL
|
||||
#define DF_S390_EM_STR "DUMP_END"
|
||||
#define DF_S390_CPU_MAX 512
|
||||
#define DF_S390_MAGIC_BLK_ECKD 3
|
||||
|
||||
@@ -67,8 +68,11 @@ struct df_s390_hdr {
|
||||
* End marker: Should be at the end of every valid s390 crash dump
|
||||
*/
|
||||
struct df_s390_em {
|
||||
uint64_t magic;
|
||||
uint64_t tod;
|
||||
union {
|
||||
uint64_t magic;
|
||||
char str[8];
|
||||
};
|
||||
uint64_t tod;
|
||||
} __packed __aligned(16);
|
||||
|
||||
/*
|
||||
@@ -78,6 +82,7 @@ struct df_s390_dump_segm_hdr {
|
||||
uint64_t start;
|
||||
uint64_t len;
|
||||
uint64_t stop_marker;
|
||||
};
|
||||
uint8_t reserved[0x1000 - 24];
|
||||
} __packed;
|
||||
|
||||
#endif /* S390_DUMP_H */
|
||||
|
||||
Reference in New Issue
Block a user