* Print timestamp, rescaling clock frequency to nanoseconds and
* applying offsets as needed (unix time).
*/
+static
void ctf_print_timestamp_real(FILE *fp,
struct ctf_stream_definition *stream,
uint64_t timestamp)
/*
* Print timestamp, in cycles
*/
+static
void ctf_print_timestamp_cycles(FILE *fp,
struct ctf_stream_definition *stream,
uint64_t timestamp)
return NULL;
}
-
+static
void ctf_init_mmap_pos(struct ctf_stream_pos *pos,
struct mmap_stream *mmap_info)
{
return ret;
}
+static
int ctf_open_mmap_trace_read(struct ctf_trace *td,
struct mmap_stream_list *mmap_list,
void (*packet_seek)(struct stream_pos *pos, size_t index,
struct ctf_trace;
+BT_HIDDEN
int ctf_visitor_print_xml(FILE *fd, int depth, struct ctf_node *node);
+BT_HIDDEN
int ctf_visitor_semantic_check(FILE *fd, int depth, struct ctf_node *node);
+BT_HIDDEN
int ctf_visitor_parent_links(FILE *fd, int depth, struct ctf_node *node);
+BT_HIDDEN
int ctf_visitor_construct_metadata(FILE *fd, int depth, struct ctf_node *node,
struct ctf_trace *trace, int byte_order);
+BT_HIDDEN
int ctf_destroy_metadata(struct ctf_trace *trace);
#endif /* _CTF_AST_H */
assert(!ret);
}
-int _ctf_float_copy(struct stream_pos *destp,
+static int _ctf_float_copy(struct stream_pos *destp,
struct definition_float *dest_definition,
struct stream_pos *srcp,
const struct definition_float *src_definition)
return ret;
}
+static
void __attribute__((constructor)) ctf_float_init(void)
{
static_float_declaration =
__alignof__(double));
}
+static
void __attribute__((destructor)) ctf_float_fini(void)
{
declaration_unref(&static_float_declaration->p);
int refcount; /* free when decremented to 0 */
};
+BT_HIDDEN
void process_callbacks(struct bt_ctf_iter *iter, struct ctf_stream_definition *stream);
#endif /* _BABELTRACE_CALLBACKS_INTERNAL_H */
return container_of(pos, struct ctf_stream_pos, parent);
}
+BT_HIDDEN
int ctf_integer_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_integer_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_float_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_float_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_string_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_string_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_enum_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_enum_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_struct_rw(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_variant_rw(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_array_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_array_write(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_sequence_read(struct stream_pos *pos, struct definition *definition);
+BT_HIDDEN
int ctf_sequence_write(struct stream_pos *pos, struct definition *definition);
void ctf_packet_seek(struct stream_pos *pos, size_t index, int whence);