From a7c4cb8e998571cb3dd62e907935a1e052b15d6c Mon Sep 17 00:00:00 2001 From: Lianbo Jiang Date: Fri, 23 Aug 2019 20:05:38 +0800 Subject: Cleanup: move it back from util_lib/elf_info.c Some code related to vmcore-dmesg.c is put into the util_lib, which is not very reasonable, so lets move it back and tidy up those code. In addition, that will also help to limit the size of vmcore-dmesg.txt in vmcore-dmesg.c instead of elf_info.c. Signed-off-by: Lianbo Jiang Signed-off-by: Simon Horman --- util_lib/include/elf_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util_lib/include') diff --git a/util_lib/include/elf_info.h b/util_lib/include/elf_info.h index c328a1b..4bc9279 100644 --- a/util_lib/include/elf_info.h +++ b/util_lib/include/elf_info.h @@ -30,6 +30,6 @@ int get_pt_load(int idx, unsigned long long *virt_end); int read_phys_offset_elf_kcore(int fd, unsigned long *phys_off); int read_elf(int fd); -int read_elf_vmcore(int fd); +void dump_dmesg(int fd, void (*handler)(char*, unsigned int)); #endif /* ELF_INFO_H */ -- cgit