benchmark: cache the kdbus msg and update only memfd item offset if needed
authorDjalal Harouni <tixxdz@opendz.org>
Tue, 28 Oct 2014 15:42:26 +0000 (16:42 +0100)
committerDjalal Harouni <tixxdz@opendz.org>
Tue, 28 Oct 2014 15:42:26 +0000 (16:42 +0100)
commitb73ce82dbdb3cbf2e50165eef49a125798d927de
treef8ad0189253bb27a363dbc753343b9b82c231594
parent9eca0f3a345aa40df3ce30a137d7dc2ac6b89f47
benchmark: cache the kdbus msg and update only memfd item offset if needed

No need to create the kdbus msg every time, and if we are sending a
memfd, then just store its item offset, patch it later with the right
memfd fd+data, seal it, then send it.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/test-benchmark.c