{
struct ctf_text_stream_pos *pos =
container_of(ppos, struct ctf_text_stream_pos, parent);
- struct ctf_stream_class *stream_class = stream->stream_class;
+ struct ctf_stream_declaration *stream_class = stream->stream_class;
int field_nr_saved;
struct ctf_event *event_class;
struct ctf_stream_event *event;
tin = container_of(td_read, struct ctf_trace, parent);
for (stream_id = 0; stream_id < tin->streams->len; stream_id++) {
- struct ctf_stream_class *stream;
+ struct ctf_stream_declaration *stream;
struct bt_stream_callbacks *bt_stream_cb = NULL;
struct bt_callback_chain *bt_chain = NULL;
struct bt_callback new_callback;
static
struct ctf_stream_event *extract_ctf_stream_event(struct ctf_stream *stream)
{
- struct ctf_stream_class *stream_class = stream->stream_class;
+ struct ctf_stream_declaration *stream_class = stream->stream_class;
struct ctf_event *event_class;
struct ctf_stream_event *event;
uint64_t id = stream->event_id;
{
struct ctf_stream_pos *pos =
container_of(ppos, struct ctf_stream_pos, parent);
- struct ctf_stream_class *stream_class = stream->stream_class;
+ struct ctf_stream_declaration *stream_class = stream->stream_class;
struct ctf_stream_event *event;
uint64_t id = 0;
int ret;
static
int ctf_write_event(struct stream_pos *pos, struct ctf_stream *stream)
{
- struct ctf_stream_class *stream_class = stream->stream_class;
+ struct ctf_stream_declaration *stream_class = stream->stream_class;
struct ctf_stream_event *event;
uint64_t id;
int ret;
static
int create_stream_definitions(struct ctf_trace *td, struct ctf_stream *stream)
{
- struct ctf_stream_class *stream_class;
+ struct ctf_stream_declaration *stream_class;
int ret;
int i;
int create_stream_packet_index(struct ctf_trace *td,
struct ctf_file_stream *file_stream)
{
- struct ctf_stream_class *stream;
+ struct ctf_stream_declaration *stream;
int len_index;
struct ctf_stream_pos *pos;
struct stat filestats;
int prepare_mmap_stream_definition(struct ctf_trace *td,
struct ctf_file_stream *file_stream)
{
- struct ctf_stream_class *stream;
+ struct ctf_stream_declaration *stream;
uint64_t stream_id = 0;
int ret;
if (td->streams) {
for (i = 0; i < td->streams->len; i++) {
- struct ctf_stream_class *stream;
+ struct ctf_stream_declaration *stream;
int j;
stream = g_ptr_array_index(td->streams, i);
const char *bt_ctf_event_name(const struct bt_ctf_event *event)
{
struct ctf_event *event_class;
- struct ctf_stream_class *stream_class;
+ struct ctf_stream_declaration *stream_class;
if (!event)
return NULL;
}
static
-struct ctf_stream_class *trace_stream_lookup(struct ctf_trace *trace, uint64_t stream_id)
+struct ctf_stream_declaration *trace_stream_lookup(struct ctf_trace *trace, uint64_t stream_id)
{
if (trace->streams->len <= stream_id)
return NULL;
static
-int ctf_stream_declaration_visit(FILE *fd, int depth, struct ctf_node *node, struct ctf_stream_class *stream, struct ctf_trace *trace)
+int ctf_stream_declaration_visit(FILE *fd, int depth, struct ctf_node *node, struct ctf_stream_declaration *stream, struct ctf_trace *trace)
{
int ret = 0;
{
int ret = 0;
struct ctf_node *iter;
- struct ctf_stream_class *stream;
+ struct ctf_stream_declaration *stream;
- stream = g_new0(struct ctf_stream_class, 1);
+ stream = g_new0(struct ctf_stream_declaration, 1);
stream->declaration_scope = new_declaration_scope(parent_declaration_scope);
stream->events_by_id = g_ptr_array_new();
stream->event_quark_to_id = g_hash_table_new(g_direct_hash, g_direct_equal);
#include <glib.h>
struct ctf_trace;
-struct ctf_stream_class;
+struct ctf_stream_declaration;
struct ctf_stream;
struct ctf_event;
struct ctf_stream;
struct ctf_clock;
struct ctf_stream {
- struct ctf_stream_class *stream_class;
+ struct ctf_stream_declaration *stream_class;
uint64_t timestamp; /* Current timestamp, in ns */
uint64_t event_id; /* Current event ID */
int has_timestamp;
struct declaration_scope *declaration_scope;
/* innermost definition scope. to be used as parent of stream. */
struct definition_scope *definition_scope;
- GPtrArray *streams; /* Array of struct ctf_stream_class pointers */
+ GPtrArray *streams; /* Array of struct ctf_stream_declaration pointers */
struct ctf_stream *metadata;
GHashTable *clocks;
struct ctf_clock *single_clock; /* currently supports only one clock */
(ctf_stream)->(field); \
})
-struct ctf_stream_class {
+struct ctf_stream_declaration {
struct ctf_trace *trace;
/* parent is lexical scope conaining the stream scope */
struct declaration_scope *declaration_scope;
struct ctf_event {
/* stream mapped by stream_id */
- struct ctf_stream_class *stream;
+ struct ctf_stream_declaration *stream;
/* parent is lexical scope conaining the event scope */
struct declaration_scope *declaration_scope;
/* for each stream_class */
for (i = 0; i < tin->streams->len; i++) {
- struct ctf_stream_class *stream_class;
+ struct ctf_stream_declaration *stream_class;
stream_class = g_ptr_array_index(tin->streams, i);
/* for each file_stream */
/* Populate heap with each stream */
for (stream_id = 0; stream_id < tin->streams->len;
stream_id++) {
- struct ctf_stream_class *stream;
+ struct ctf_stream_declaration *stream;
int filenr;
stream = g_ptr_array_index(tin->streams,
for (stream_class_id = 0; stream_class_id < tin->streams->len;
stream_class_id++) {
- struct ctf_stream_class *stream_class;
+ struct ctf_stream_declaration *stream_class;
stream_class = g_ptr_array_index(tin->streams,
stream_class_id);
/* Populate heap with each stream */
for (stream_id = 0; stream_id < tin->streams->len;
stream_id++) {
- struct ctf_stream_class *stream;
+ struct ctf_stream_declaration *stream;
int filenr;
stream = g_ptr_array_index(tin->streams, stream_id);
/* Populate heap with each stream */
for (stream_id = 0; stream_id < tin->streams->len;
stream_id++) {
- struct ctf_stream_class *stream;
+ struct ctf_stream_declaration *stream;
int filenr;
stream = g_ptr_array_index(tin->streams, stream_id);