mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump: Extract common ELF routines from dfo_elf and move to df_elf
The primary goal of this change is to split DFO ELF module into multiple smaller ones for better unit testability. The change doesn't introduce any functionality changes, just shuffling code around. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
4bd16ba8ea
commit
ef88fac874
@@ -18,6 +18,7 @@
|
||||
#include "lib/zt_common.h"
|
||||
|
||||
#include "zg.h"
|
||||
#include "dfi.h"
|
||||
|
||||
/*
|
||||
* S390 CPU timer note (u64)
|
||||
@@ -115,4 +116,20 @@ static inline void df_elf_ensure_s390x(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
void *ehdr_init(Elf64_Ehdr *ehdr, Elf64_Half phnum);
|
||||
|
||||
void *nt_init(void *buf, Elf64_Word type, const void *desc, int d_len,
|
||||
const char *name);
|
||||
void *nt_prstatus(void *ptr, const struct dfi_cpu *cpu);
|
||||
void *nt_fpregset(void *ptr, const struct dfi_cpu *cpu);
|
||||
void *nt_s390_timer(void *ptr, const struct dfi_cpu *cpu);
|
||||
void *nt_s390_tod_cmp(void *ptr, const struct dfi_cpu *cpu);
|
||||
void *nt_s390_tod_preg(void *ptr, const struct dfi_cpu *cpu);
|
||||
void *nt_s390_ctrs(void *ptr, const struct dfi_cpu *cpu);
|
||||
void *nt_s390_prefix(void *ptr, const struct dfi_cpu *cpu);
|
||||
void *nt_s390_vxrs_low(void *ptr, const struct dfi_cpu *cpu);
|
||||
void *nt_s390_vxrs_high(void *ptr, const struct dfi_cpu *cpu);
|
||||
void *nt_prpsinfo(void *ptr);
|
||||
void *nt_vmcoreinfo(void *ptr, const char *vmcoreinfo);
|
||||
|
||||
#endif /* DF_ELF_H */
|
||||
|
||||
Reference in New Issue
Block a user