Processing message attachments can take quite some time. Add a mode to
skip those.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
static const bool use_memfd = true; /* transmit memfd? */
static const bool compare_uds = false; /* unix-socket comparison? */
+static const bool attach_none = false; /* clear attach-flags? */
static char stress_payload[8192];
struct stats {
ret = kdbus_name_acquire(conn_a, SERVICE_NAME, NULL);
ASSERT_RETURN(ret == 0);
+ if (attach_none) {
+ ret = kdbus_conn_update_attach_flags(conn_a, 0);
+ ASSERT_RETURN(ret == 0);
+ }
+
/* setup UDS pair */
ret = socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK, 0, uds);