summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-08-20 01:09:33 +0200
committerChristian Brauner <brauner@kernel.org>2026-09-22 13:25:02 +0200
commitf82383160f0f51bdb8fdb1950aff4ceda53f024f (patch)
tree03be7fde972116e19d3004c099357529018c57fb /tools/testing
parent675f4a0d7bc751600f7cdc155f440b336695b45d (diff)
downloadlinux-next-f82383160f0f51bdb8fdb1950aff4ceda53f024f.tar.gz
linux-next-f82383160f0f51bdb8fdb1950aff4ceda53f024f.zip
coredump: send the coredump in records if requested
When the coredump server raises COREDUMP_RECORDS send the coredump in records. A record consists of a struct coredump_record_header and data. A header and the bytes it describes go out in one iovec. A hole is flushed through __dump_emit() like before. So zeroes still are sent on the socket as actual data records. Making holes cheap is COREDUMP_SPARSE's job. Link: https://patch.msgid.link/20260820-work-coredump-sparse-v2-16-ba32dd718c51@kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/coredump/coredump_test_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/coredump/coredump_test_helpers.c b/tools/testing/selftests/coredump/coredump_test_helpers.c
index 570fc2e005c2..1c8658f35735 100644
--- a/tools/testing/selftests/coredump/coredump_test_helpers.c
+++ b/tools/testing/selftests/coredump/coredump_test_helpers.c
@@ -275,7 +275,7 @@ bool send_coredump_ack(int fd, const struct coredump_req *req,
/* Every option the kernel is expected to advertise in coredump_req->mask. */
#define TEST_REQ_MASK_ALL \
(COREDUMP_KERNEL | COREDUMP_USERSPACE | \
- COREDUMP_REJECT | COREDUMP_WAIT)
+ COREDUMP_REJECT | COREDUMP_WAIT | COREDUMP_RECORDS)
bool check_coredump_req(const struct coredump_req *req)
{