mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zgetdump: Add 'Dump file size' field for zgetdump -i output
Add 'Dump file size' field for zgetdump -i output to show the actual size of dump file in s390 extended format on disk in megabytes. Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
15c22ec742
commit
cf99ea019e
+19
@@ -72,6 +72,7 @@ struct attr {
|
||||
u32 *real_cpu_cnt;
|
||||
struct new_utsname *utsname;
|
||||
char *dump_method;
|
||||
u64 *file_size;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -262,6 +263,9 @@ void dfi_info_print(void)
|
||||
if (l.attr.mem_size_real)
|
||||
STDERR(" Real memory range..: %lld MB\n",
|
||||
TO_MIB(*l.attr.mem_size_real));
|
||||
if (l.attr.file_size)
|
||||
STDERR(" Dump file size.....: %lld MB\n",
|
||||
TO_MIB(*l.attr.file_size));
|
||||
if (dfi_mem_range())
|
||||
mem_map_print();
|
||||
if (l.dfi->info_dump) {
|
||||
@@ -776,6 +780,21 @@ u64 *dfi_attr_mem_size_real(void)
|
||||
return l.attr.mem_size_real;
|
||||
}
|
||||
|
||||
/*
|
||||
* Attribute: Dump file size
|
||||
*/
|
||||
void dfi_attr_file_size_set(u64 file_size)
|
||||
{
|
||||
l.attr.file_size = zg_alloc(sizeof(*l.attr.file_size));
|
||||
*l.attr.file_size = file_size;
|
||||
}
|
||||
|
||||
u64 *dfi_attr_file_size(void)
|
||||
{
|
||||
return l.attr.file_size;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Attribute: Build architecture
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user