projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Add bt_common_get_page_size
[babeltrace.git]
/
lib
/
ctf-writer
/
serialize.c
diff --git
a/lib/ctf-writer/serialize.c
b/lib/ctf-writer/serialize.c
index f20ad405cb99cdcebbb76ac1a4f9ae0c53d9e6a7..11ce8b443531a5783dc6d8a80bff101ba0b4ff8f 100644
(file)
--- a/
lib/ctf-writer/serialize.c
+++ b/
lib/ctf-writer/serialize.c
@@
-42,6
+42,7
@@
#include <babeltrace/bitfield-internal.h>
#include <babeltrace/compat/fcntl-internal.h>
#include <babeltrace/types.h>
#include <babeltrace/bitfield-internal.h>
#include <babeltrace/compat/fcntl-internal.h>
#include <babeltrace/types.h>
+#include <babeltrace/common-internal.h>
#include <glib.h>
#if (FLT_RADIX != 2)
#include <glib.h>
#if (FLT_RADIX != 2)
@@
-284,7
+285,7
@@
void bt_ctf_stream_pos_packet_seek(struct bt_ctf_stream_pos *pos, size_t index,
/* The writer will add padding */
pos->mmap_offset += pos->packet_size / CHAR_BIT;
/* The writer will add padding */
pos->mmap_offset += pos->packet_size / CHAR_BIT;
- pos->packet_size =
getpagesize() * 8 * CHAR_BI
T;
+ pos->packet_size =
PACKET_LEN_INCREMEN
T;
do {
ret = bt_posix_fallocate(pos->fd, pos->mmap_offset,
pos->packet_size / CHAR_BIT);
do {
ret = bt_posix_fallocate(pos->fd, pos->mmap_offset,
pos->packet_size / CHAR_BIT);
This page took
0.026048 seconds
and
4
git commands to generate.