diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-08-20 01:09:34 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-22 13:25:02 +0200 |
| commit | 3aa5ebec7895c4398b91c07792b18aaa37858a59 (patch) | |
| tree | fff8f3d8d1054bafdc8acd6a9d5ac60682fa49b8 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | f82383160f0f51bdb8fdb1950aff4ceda53f024f (diff) | |
| download | linux-next-3aa5ebec7895c4398b91c07792b18aaa37858a59.tar.gz linux-next-3aa5ebec7895c4398b91c07792b18aaa37858a59.zip | |
coredump: describe the holes when COREDUMP_SPARSE is negotiated
Make use of COREDUMP_SPARSE. Refuse it without COREDUMP_RECORDS.
Actual holes are sent as a record with length indicating how much zero
data there was.
coredump_write() flushes a trailing hole if the coredump is done.
Instead of writing the actual byte for pipes and sockets, collapse it.
This stops wasting a header with coredump records for a single byte. So
we now only write it when the coredump can be seeked. TL;DR a trailing
hole is a zero record like any other and the records still cover the
whole coredump.
Link: https://patch.msgid.link/20260820-work-coredump-sparse-v2-17-ba32dd718c51@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
