mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump: Don't use god-like C headers
Get rid of C headers which include everything. This is bad for testing and maintainability. C files should include only what they need and no more. Signed-off-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
afb14cba7a
commit
1005e7be7e
@@ -17,7 +17,7 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "df_s390.h"
|
||||
|
||||
/*
|
||||
* Check, if we can access the lowcore information in the dump
|
||||
|
||||
@@ -9,13 +9,12 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include "lib/util_log.h"
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "dfi_mem_chunk.h"
|
||||
#include "dfi_vmcoreinfo.h"
|
||||
#include "dfi.h"
|
||||
|
||||
#define TIME_FMT_STR "%a, %d %b %Y %H:%M:%S %z"
|
||||
#define PROGRESS_HASH_CNT 50
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef DFI_H
|
||||
#define DFI_H
|
||||
|
||||
#include <time.h>
|
||||
#include <linux/utsname.h>
|
||||
|
||||
#include "lib/zt_common.h"
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "df_s390.h"
|
||||
#include "dfi.h"
|
||||
|
||||
/*
|
||||
* Add live dump magic to buffer
|
||||
|
||||
@@ -18,7 +18,11 @@
|
||||
|
||||
#include "lib/util_libc.h"
|
||||
#include "lib/util_log.h"
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "zg.h"
|
||||
#include "df_elf.h"
|
||||
#include "dfi.h"
|
||||
|
||||
/*
|
||||
* Read memory for given memory chunk
|
||||
|
||||
@@ -9,7 +9,11 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "zg.h"
|
||||
#include "dfi.h"
|
||||
|
||||
struct df_kdump_hdr {
|
||||
char signature[8];
|
||||
|
||||
@@ -9,8 +9,14 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "zg.h"
|
||||
#include "df_lkcd.h"
|
||||
#include "dfi.h"
|
||||
|
||||
#define MEM_HOLE_SIZE_MIN (1024 * 1024)
|
||||
#define IDX_KIB 64 /* One index entry per IDX_KIB */
|
||||
|
||||
@@ -17,9 +17,16 @@
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "lib/util_log.h"
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "zg.h"
|
||||
#include "dfi.h"
|
||||
#include "dfi_mem_chunk.h"
|
||||
#include "df_elf.h"
|
||||
#include "df_s390.h"
|
||||
|
||||
/*
|
||||
* File local static data
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "dt.h"
|
||||
#include "df_s390.h"
|
||||
#include "dfi.h"
|
||||
|
||||
/*
|
||||
* Initialize s390 input dump format (extended)
|
||||
|
||||
@@ -20,11 +20,15 @@
|
||||
#include <sys/sysmacros.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "lib/util_file.h"
|
||||
#include "lib/util_path.h"
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "dt.h"
|
||||
#include "df_s390.h"
|
||||
#include "dfi.h"
|
||||
#include "dfi_s390mv.h"
|
||||
|
||||
/*
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
*/
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "dt.h"
|
||||
#include "df_s390.h"
|
||||
#include "dfi.h"
|
||||
|
||||
/*
|
||||
* Initialize s390 multi-volume input dump format (extedend)
|
||||
|
||||
@@ -17,8 +17,11 @@
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "df_s390.h"
|
||||
#include "dfi.h"
|
||||
|
||||
#define TAPE_BLK_SIZE 32768 /* Defined by zipl tape dumper */
|
||||
|
||||
|
||||
@@ -10,7 +10,11 @@
|
||||
*/
|
||||
|
||||
#include <time.h>
|
||||
#include "zgetdump.h"
|
||||
|
||||
#include "lib/util_list.h"
|
||||
|
||||
#include "dfi_mem_chunk.h"
|
||||
#include "dfo.h"
|
||||
|
||||
#define dfo_chunk_iterate(dfo_chunk) \
|
||||
util_list_iterate(&l.dump.chunk_list, dfo_chunk)
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "df_s390.h"
|
||||
#include "dfo.h"
|
||||
|
||||
/*
|
||||
* File local static data
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "dt.h"
|
||||
#include "df_s390.h"
|
||||
|
||||
/*
|
||||
* Initialize s390 multi-volume dump tool (for -d option)
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "dt.h"
|
||||
#include "df_s390.h"
|
||||
|
||||
/*
|
||||
* Initialize s390 multi-volume dump tool (extedend) for -d option
|
||||
|
||||
@@ -9,8 +9,13 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <linux/fs.h>
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "zg.h"
|
||||
#include "dt.h"
|
||||
#include "df_s390.h"
|
||||
|
||||
/*
|
||||
* File local static data
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
*/
|
||||
|
||||
#include <linux/fs.h>
|
||||
#include "zgetdump.h"
|
||||
|
||||
#include "dt.h"
|
||||
#include "df_s390.h"
|
||||
|
||||
/*
|
||||
* Initialize s390 single-volume extended dump tool (for -d option)
|
||||
|
||||
@@ -9,13 +9,16 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#include <linux/fs.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <linux/fs.h>
|
||||
|
||||
#include "lib/zt_common.h"
|
||||
#include "lib/util_part.h"
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "zg.h"
|
||||
#include "dt.h"
|
||||
|
||||
/*
|
||||
* Single volume SCSI dump superblock
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
|
||||
#include "lib/zt_common.h"
|
||||
#include "lib/util_log.h"
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "dfo.h"
|
||||
|
||||
/*
|
||||
* Text for --help option
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "zg.h"
|
||||
#include "dfi.h"
|
||||
#include "dfo.h"
|
||||
|
||||
int stdout_write_dump(void)
|
||||
{
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "zgetdump.h"
|
||||
#include "dt.h"
|
||||
#include "dfi.h"
|
||||
#include "dfo.h"
|
||||
#include "zfuse.h"
|
||||
|
||||
/*
|
||||
|
||||
@@ -12,12 +12,6 @@
|
||||
#ifndef ZGETDUMP_H
|
||||
#define ZGETDUMP_H
|
||||
|
||||
#include "df_elf.h"
|
||||
#include "df_lkcd.h"
|
||||
#include "df_s390.h"
|
||||
#include "dfi.h"
|
||||
#include "dfo.h"
|
||||
#include "dt.h"
|
||||
#include "zg.h"
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user