projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5218dda
)
test: benchmark - use sizeof(struct timeval)
author
Kay Sievers
<kay@vrfy.org>
Fri, 27 Dec 2013 12:02:26 +0000
(13:02 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Fri, 27 Dec 2013 12:02:26 +0000
(13:02 +0100)
Simon Peeters 12:41 PM:
I am happy to let you all know that the error is not in the kdbus
code, but in the test code which has 16 hardcoded as the size of struct
timeval.
test/test-kdbus-benchmark.c
patch
|
blob
|
history
diff --git
a/test/test-kdbus-benchmark.c
b/test/test-kdbus-benchmark.c
index 9e3cb2a4e92048d2fabb74a4474257a9c509ce51..163734f6ee4efa89d37a106b9c2232e550224f56 100644
(file)
--- a/
test/test-kdbus-benchmark.c
+++ b/
test/test-kdbus-benchmark.c
@@
-135,7
+135,7
@@
send_echo_request(struct conn *conn, uint64_t dst_id)
item->type = KDBUS_ITEM_PAYLOAD_MEMFD;
item->size = KDBUS_ITEM_HEADER_SIZE + sizeof(struct kdbus_memfd);
- item->memfd.size =
16
;
+ item->memfd.size =
sizeof(struct timeval)
;
item->memfd.fd = memfd;
item = KDBUS_ITEM_NEXT(item);