[RFC PATCH] makedumpfile: add userinfo elf section 0/4]

Ivan Khoronzhuk ivan.khoronzhuk at gmail.com
Wed Dec 1 05:47:26 PST 2021


These patchset suggests feature to add user specific information along
with dumpfile. One of usecases could be a platform build information
containing dubug file addresses, sources of daily build, some
platform related information and more, it's gracefully simplifies
debugging process, since an engineer doesn't need to spend time on
finding to which platform this core file is related, where to get
debugging counter part and so on. As user info can be added along with
dumpfile it frees platform from creating tar achieve spending doubled
space or using specific tools. Since this information is sorted and
selected by user it can't be standardized and should be placed in some
special generic section. This patchset roughly proposes the variant when
user information is placed/retrieved as subsection of note elf
section.

Ivan Khoronzhuk (4):
  makedumpfile: rename check_dump_file() on check_file_is_writable()
  elf: add new "userinfo" ELF section to traverse debug information
  elf_info: make int note_descsz() and offset_next_note() public
  elf: add ability to read the userinfo data from note segment

 elf_info.c     |   4 +-
 elf_info.h     |   5 +
 makedumpfile.c | 393 ++++++++++++++++++++++++++++++++++++++++++++++++-
 makedumpfile.h |  12 ++
 4 files changed, 404 insertions(+), 10 deletions(-)

-- 
2.20.1




More information about the kexec mailing list