projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctf: compile plugin as C++
[babeltrace.git]
/
src
/
ctfser
/
ctfser.h
diff --git
a/src/ctfser/ctfser.h
b/src/ctfser/ctfser.h
index caffaec8256cc89fdfc9d29a4a0c4e3e4b40dd11..d2fb0b9126cc0fe68706065efbe981e7db9ec2b9 100644
(file)
--- a/
src/ctfser/ctfser.h
+++ b/
src/ctfser/ctfser.h
@@
-53,7
+53,7
@@
struct bt_ctfser {
uint64_t stream_size_bytes;
/* Memory map base address */
uint64_t stream_size_bytes;
/* Memory map base address */
- struct mmap_align *base_mma;
+ struct mmap_align
_data
*base_mma;
/* Stream file's path (for debugging) */
GString *path;
/* Stream file's path (for debugging) */
GString *path;
@@
-67,7
+67,7
@@
struct bt_ctfser {
*
* This function opens the file `path` for writing.
*/
*
* This function opens the file `path` for writing.
*/
-BT_HIDDEN
+BT_
EXTERN_C BT_
HIDDEN
int bt_ctfser_init(struct bt_ctfser *ctfser, const char *path,
int log_level);
int bt_ctfser_init(struct bt_ctfser *ctfser, const char *path,
int log_level);
@@
-77,7
+77,7
@@
int bt_ctfser_init(struct bt_ctfser *ctfser, const char *path,
* This function truncates the stream file so that there's no extra
* padding after the last packet, and then closes the file.
*/
* This function truncates the stream file so that there's no extra
* padding after the last packet, and then closes the file.
*/
-BT_HIDDEN
+BT_
EXTERN_C BT_
HIDDEN
int bt_ctfser_fini(struct bt_ctfser *ctfser);
/*
int bt_ctfser_fini(struct bt_ctfser *ctfser);
/*
@@
-85,17
+85,17
@@
int bt_ctfser_fini(struct bt_ctfser *ctfser);
*
* All the next writing functions are performed within this new packet.
*/
*
* All the next writing functions are performed within this new packet.
*/
-BT_HIDDEN
+BT_
EXTERN_C BT_
HIDDEN
int bt_ctfser_open_packet(struct bt_ctfser *ctfser);
/*
* Closes the current packet, making its size `packet_size_bytes`.
*/
int bt_ctfser_open_packet(struct bt_ctfser *ctfser);
/*
* Closes the current packet, making its size `packet_size_bytes`.
*/
-BT_HIDDEN
+BT_
EXTERN_C BT_
HIDDEN
void bt_ctfser_close_current_packet(struct bt_ctfser *ctfser,
uint64_t packet_size_bytes);
void bt_ctfser_close_current_packet(struct bt_ctfser *ctfser,
uint64_t packet_size_bytes);
-BT_HIDDEN
+BT_
EXTERN_C BT_
HIDDEN
int _bt_ctfser_increase_cur_packet_size(struct bt_ctfser *ctfser);
static inline
int _bt_ctfser_increase_cur_packet_size(struct bt_ctfser *ctfser);
static inline
@@
-164,7
+164,7
@@
int bt_ctfser_align_offset_in_current_packet(struct bt_ctfser *ctfser,
uint64_t align_size_bits;
BT_ASSERT_DBG(alignment_bits > 0);
uint64_t align_size_bits;
BT_ASSERT_DBG(alignment_bits > 0);
- align_size_bits = ALIGN(ctfser->offset_in_cur_packet_bits,
+ align_size_bits =
BT_
ALIGN(ctfser->offset_in_cur_packet_bits,
alignment_bits) - ctfser->offset_in_cur_packet_bits;
if (G_UNLIKELY(!_bt_ctfser_has_space_left(ctfser, align_size_bits))) {
alignment_bits) - ctfser->offset_in_cur_packet_bits;
if (G_UNLIKELY(!_bt_ctfser_has_space_left(ctfser, align_size_bits))) {
@@
-404,11
+404,11
@@
int bt_ctfser_write_unsigned_int(struct bt_ctfser *ctfser, uint64_t value,
}
if (byte_order == LITTLE_ENDIAN) {
}
if (byte_order == LITTLE_ENDIAN) {
- bt_bitfield_write_le(mmap_align_addr(ctfser->base_mma) +
+ bt_bitfield_write_le(
(uint8_t *)
mmap_align_addr(ctfser->base_mma) +
ctfser->mmap_base_offset, uint8_t,
ctfser->offset_in_cur_packet_bits, size_bits, value);
} else {
ctfser->mmap_base_offset, uint8_t,
ctfser->offset_in_cur_packet_bits, size_bits, value);
} else {
- bt_bitfield_write_be(mmap_align_addr(ctfser->base_mma) +
+ bt_bitfield_write_be(
(uint8_t *)
mmap_align_addr(ctfser->base_mma) +
ctfser->mmap_base_offset, uint8_t,
ctfser->offset_in_cur_packet_bits, size_bits, value);
}
ctfser->mmap_base_offset, uint8_t,
ctfser->offset_in_cur_packet_bits, size_bits, value);
}
@@
-449,11
+449,11
@@
int bt_ctfser_write_signed_int(struct bt_ctfser *ctfser, int64_t value,
}
if (byte_order == LITTLE_ENDIAN) {
}
if (byte_order == LITTLE_ENDIAN) {
- bt_bitfield_write_le(mmap_align_addr(ctfser->base_mma) +
+ bt_bitfield_write_le(
(uint8_t *)
mmap_align_addr(ctfser->base_mma) +
ctfser->mmap_base_offset, uint8_t,
ctfser->offset_in_cur_packet_bits, size_bits, value);
} else {
ctfser->mmap_base_offset, uint8_t,
ctfser->offset_in_cur_packet_bits, size_bits, value);
} else {
- bt_bitfield_write_be(mmap_align_addr(ctfser->base_mma) +
+ bt_bitfield_write_be(
(uint8_t *)
mmap_align_addr(ctfser->base_mma) +
ctfser->mmap_base_offset, uint8_t,
ctfser->offset_in_cur_packet_bits, size_bits, value);
}
ctfser->mmap_base_offset, uint8_t,
ctfser->offset_in_cur_packet_bits, size_bits, value);
}
This page took
0.024728 seconds
and
4
git commands to generate.