Skip to content

Add library for humility dump#698

Open
labbott wants to merge 2 commits into
masterfrom
humility-dump-lib
Open

Add library for humility dump#698
labbott wants to merge 2 commits into
masterfrom
humility-dump-lib

Conversation

@labbott

@labbott labbott commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

This is broken up into two commits

  1. Refactor humility dump to make some of the logic easier to follow
  2. Add the dumping library

Because of the way humility dump currently works it's tricky to have all the library functions replace the same functions in the binary. Almost tempted to say we should start from scratch with humility dump-ng but that's probably a bad idea.

labbott added 2 commits June 9, 2026 10:12
This function has grown complicated and hard to follow. Extract
the following to separate functions

- `subargs.initialize_dump_agent`
- `subargs.simulate_dumper`/`subargs.emulate_dumper`/
   `subargs.simulate_task_dump`
- `subargs.extract`/`subargs.force_read`

There's a little bit of redundancy but it makes the logic much
easier to follow.
One of the most common uses for humility is to take an SP dump on a
system so it can be analyzed later. Having this as a library
function makes it easier to do it more places.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant