Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
struct ctf_trace *td = container_of(descriptor, struct ctf_trace,
parent);
- td->handle = handle;
+ td->parent.handle = handle;
}
static
cfs = container_of(event->stream, const struct ctf_file_stream,
parent);
trace = cfs->parent.stream_class->trace;
- if (trace->handle)
- ret = trace->handle->id;
+ if (trace->parent.handle)
+ ret = trace->parent.handle->id;
return ret;
}
/* Heap of streams, ordered to always get the lowest timestamp */
struct ptr_heap *stream_heap;
-
- struct bt_trace_handle *handle;
};
#define CTF_STREAM_SET_FIELD(ctf_stream, field) \
struct bt_trace_descriptor {
char path[PATH_MAX]; /* trace path */
struct bt_context *ctx;
+ struct bt_trace_handle *handle;
};
#ifdef __cplusplus