projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add FreeBSD compat layer for splice and sync_file_range
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index 80dedd5c6cfd057397eef3706ec62ef9717889e7..b605591e478a1c2a40dd13a25228bd2ad80bc684 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-19,6
+19,7
@@
#define _GNU_SOURCE
#include <assert.h>
#define _GNU_SOURCE
#include <assert.h>
+#include <fcntl.h>
#include <poll.h>
#include <pthread.h>
#include <stdlib.h>
#include <poll.h>
#include <pthread.h>
#include <stdlib.h>
@@
-600,7
+601,7
@@
void lttng_consumer_sync_trace_file(
if (orig_offset < stream->chan->max_sb_size) {
return;
}
if (orig_offset < stream->chan->max_sb_size) {
return;
}
-
lttng_
sync_file_range(outfd, orig_offset - stream->chan->max_sb_size,
+ sync_file_range(outfd, orig_offset - stream->chan->max_sb_size,
stream->chan->max_sb_size,
SYNC_FILE_RANGE_WAIT_BEFORE
| SYNC_FILE_RANGE_WRITE
stream->chan->max_sb_size,
SYNC_FILE_RANGE_WAIT_BEFORE
| SYNC_FILE_RANGE_WRITE
@@
-741,8
+742,6
@@
int lttng_consumer_on_read_subbuffer_mmap(
ERR("Unknown consumer_data type");
assert(0);
}
ERR("Unknown consumer_data type");
assert(0);
}
-
- return 0;
}
/*
}
/*
This page took
0.023907 seconds
and
4
git commands to generate.