Lines Matching defs:stream
16 #include <babeltrace/ctf-writer/stream.h>
53 struct bt_ctf_stream *stream;
61 struct ctf_stream **stream;
671 err = bt_ctf_stream_flush(cs->stream);
673 pr_err("CTF stream %d flush failed\n", cs->cpu);
675 pr("Flush stream for cpu %d (%u samples)\n",
689 struct bt_ctf_stream *stream = NULL;
694 pr_err("Failed to allocate ctf stream\n");
698 stream = bt_ctf_writer_create_stream(cw->writer, cw->stream_class);
699 if (!stream) {
700 pr_err("Failed to create CTF stream\n");
704 pkt_ctx = bt_ctf_stream_get_packet_context(stream);
726 cs->stream = stream;
732 if (stream)
733 bt_ctf_stream_put(stream);
742 bt_ctf_stream_put(cs->stream);
749 struct ctf_stream *cs = cw->stream[cpu];
753 cw->stream[cpu] = cs;
780 * time for the stream flush other than keep track
853 bt_ctf_stream_append_event(cs->stream, event);
896 bt_ctf_stream_append_event(cs->stream, event); \
1188 pr("Failed to add event class into stream.\n");
1243 pr("Failed to add event class '"#_name"' into stream.\n");\
1332 struct ctf_stream **stream;
1342 stream = zalloc(sizeof(*stream) * ncpus);
1343 if (!stream) {
1348 cw->stream = stream;
1358 ctf_stream__delete(cw->stream[cpu]);
1360 zfree(&cw->stream);
1532 /* CTF stream class */
1535 pr("Failed to create CTF stream class.\n");
1541 /* CTF clock stream setup */
1543 pr("Failed to assign CTF clock to stream class.\n");
1580 ret = ctf_stream__flush(cw->stream[cpu]);