Fix: Consumer return value check after mmap/splice
authorDavid Goulet <dgoulet@efficios.com>
Mon, 17 Sep 2012 15:57:07 +0000 (11:57 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 17 Sep 2012 15:57:07 +0000 (11:57 -0400)
commit91dfef6e2f50460b9597fc8a8186949c48557c14
treea8fee25fa61b5dd21acd1fe99f1e2219daafb1ea
parent1d4dfdefb6efe31cd6436931f893caf7b05d0223
Fix: Consumer return value check after mmap/splice

With the feature of not sending the trace file padding over the network
for streaming, the return value of mmap or splice failed to match the
passed value when the trace is written on disk since we ignore the
padding for that case.

However, this was simply to print an error message so no behavior is
changed with this patch.

Detail comments were added to explain this "complex" return value check.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/kernel-consumer/kernel-consumer.c
src/common/ust-consumer/ust-consumer.c
This page took 0.026503 seconds and 5 git commands to generate.