mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
LibCoreDump+CrashDaemon: Compress coredumps
Most coredumps contain large amounts of consecutive null bytes and as such are a prime candidate for compression. This commit makes CrashDaemon compress files once the kernel finishes emitting them, as well as adds the functionality needed in LibCoreDump to then parse them.
This commit is contained in:
parent
b8f462a78b
commit
9f656b6fa9
Notes:
sideshowbarker
2024-07-18 20:59:27 +09:00
Author: https://github.com/IdanHo
Commit: 9f656b6fa9
Pull-request: https://github.com/SerenityOS/serenity/pull/5960
Issue: https://github.com/SerenityOS/serenity/issues/4601
8 changed files with 70 additions and 15 deletions
|
@ -70,7 +70,9 @@ public:
|
|||
HashMap<String, String> metadata() const;
|
||||
|
||||
private:
|
||||
Reader(NonnullRefPtr<MappedFile>);
|
||||
Reader(ReadonlyBytes);
|
||||
|
||||
static ByteBuffer decompress_coredump(const ReadonlyBytes&);
|
||||
|
||||
class NotesEntryIterator {
|
||||
public:
|
||||
|
@ -92,7 +94,7 @@ private:
|
|||
// as getters with the appropriate (non-JsonValue) types.
|
||||
const JsonObject process_info() const;
|
||||
|
||||
NonnullRefPtr<MappedFile> m_coredump_file;
|
||||
ByteBuffer m_coredump_buffer;
|
||||
ELF::Image m_coredump_image;
|
||||
ssize_t m_notes_segment_index { -1 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue