summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-kernel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-05-22 16:02:21 +0200
committerLennart Poettering <lennart@poettering.net>2013-05-22 16:04:39 +0200
commit8f155917bf5c11c8f156d7f25f242257d6086cb9 (patch)
tree5b34963cd80961ca0353f93e0598e1a2b6451738 /src/libsystemd-bus/bus-kernel.c
parent2927b326ccf67236e148444679f582ea1437ef5a (diff)
bus: add benchmark tool to determine the right threshold for copying vs. memfd
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r--src/libsystemd-bus/bus-kernel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c
index 19d274b662..10b7a8aba4 100644
--- a/src/libsystemd-bus/bus-kernel.c
+++ b/src/libsystemd-bus/bus-kernel.c
@@ -326,6 +326,8 @@ int bus_kernel_take_fd(sd_bus *b) {
if (b->is_server)
return -EINVAL;
+ b->use_memfd = 1;
+
if (!b->kdbus_buffer) {
b->kdbus_buffer = mmap(NULL, KDBUS_POOL_SIZE, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
if (b->kdbus_buffer == MAP_FAILED) {