qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] dump: Cleanup and consolidation
@ 2022-03-01 14:22 Janosch Frank
  2022-03-01 14:22 ` [PATCH 1/7] dump: Introduce shdr_num to decrease complexity Janosch Frank
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Janosch Frank @ 2022-03-01 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: marcandre.lureau, pbonzini

The dump/dump.c file has lots of duplicated code for handling 64 and
32 bit elf files. Additionally there are many instances where code can
be improved by adding a variable to avoid having to specify the same
calculation or check over and over.

This series is the cleanup step onto which my series that adds custom
section support and finally the series that introduces PV dump support
are based on.

Personal comments:
I'd be happy if someone looks at the error handling.

It's taken me quite a while to understand how the code works and I
expect that this patch might improve that but it won't fix every
issue. Going forward it might make sense to split kdump and elf dump
code into separate files and also cleanup the kdump code.

Janosch Frank (7):
  dump: Introduce shdr_num to decrease complexity
  dump: Remove the sh_info variable
  dump: Add more offset variables
  dump: Introduce dump_is_64bit() helper function
  dump: Consolidate phdr note writes
  dump: Cleanup dump_begin write functions
  dump: Consolidate elf note function

 dump/dump.c           | 256 +++++++++++++++++++-----------------------
 include/sysemu/dump.h |  15 ++-
 2 files changed, 125 insertions(+), 146 deletions(-)

-- 
2.32.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-03-08 13:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-01 14:22 [PATCH 0/7] dump: Cleanup and consolidation Janosch Frank
2022-03-01 14:22 ` [PATCH 1/7] dump: Introduce shdr_num to decrease complexity Janosch Frank
2022-03-01 14:42   ` Marc-André Lureau
2022-03-08 13:16     ` Janosch Frank
2022-03-01 14:22 ` [PATCH 2/7] dump: Remove the sh_info variable Janosch Frank
2022-03-01 14:22 ` [PATCH 3/7] dump: Add more offset variables Janosch Frank
2022-03-02 10:20   ` Marc-André Lureau
2022-03-01 14:22 ` [PATCH 4/7] dump: Introduce dump_is_64bit() helper function Janosch Frank
2022-03-01 14:33   ` Marc-André Lureau
2022-03-01 14:22 ` [PATCH 5/7] dump: Consolidate phdr note writes Janosch Frank
2022-03-01 14:30   ` Marc-André Lureau
2022-03-01 16:00     ` Janosch Frank
2022-03-01 14:22 ` [PATCH 6/7] dump: Cleanup dump_begin write functions Janosch Frank
2022-03-01 14:22 ` [PATCH 7/7] dump: Consolidate elf note function Janosch Frank
2022-03-02 10:30   ` Marc-André Lureau
2022-03-02 12:44     ` Janosch Frank
2022-03-02 21:15       ` Marc-André Lureau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).