Lines Matching refs:stream
16 #include <babeltrace/ctf-writer/stream.h>
57 struct bt_ctf_stream *stream;
65 struct ctf_stream **stream;
677 err = bt_ctf_stream_flush(cs->stream);
679 pr_err("CTF stream %d flush failed\n", cs->cpu);
681 pr("Flush stream for cpu %d (%u samples)\n",
695 struct bt_ctf_stream *stream = NULL;
700 pr_err("Failed to allocate ctf stream\n");
704 stream = bt_ctf_writer_create_stream(cw->writer, cw->stream_class);
705 if (!stream) {
706 pr_err("Failed to create CTF stream\n");
710 pkt_ctx = bt_ctf_stream_get_packet_context(stream);
732 cs->stream = stream;
738 if (stream)
739 bt_ctf_stream_put(stream);
748 bt_ctf_stream_put(cs->stream);
755 struct ctf_stream *cs = cw->stream[cpu];
759 cw->stream[cpu] = cs;
786 * time for the stream flush other than keep track
859 bt_ctf_stream_append_event(cs->stream, event);
902 bt_ctf_stream_append_event(cs->stream, event); \
1194 pr("Failed to add event class into stream.\n");
1249 pr("Failed to add event class '"#_name"' into stream.\n");\
1338 struct ctf_stream **stream;
1348 stream = zalloc(sizeof(*stream) * ncpus);
1349 if (!stream) {
1354 cw->stream = stream;
1364 ctf_stream__delete(cw->stream[cpu]);
1366 zfree(&cw->stream);
1538 /* CTF stream class */
1541 pr("Failed to create CTF stream class.\n");
1547 /* CTF clock stream setup */
1549 pr("Failed to assign CTF clock to stream class.\n");
1586 ret = ctf_stream__flush(cw->stream[cpu]);