struct fs_sink_stream *stream = NULL;
trace = g_hash_table_lookup(fs_sink->traces, ir_trace);
- if (unlikely(!trace)) {
+ if (G_UNLIKELY(!trace)) {
if (fs_sink->assume_single_trace &&
g_hash_table_size(fs_sink->traces) > 0) {
BT_LOGE("Single trace mode, but getting more than one trace: "
}
stream = g_hash_table_lookup(trace->streams, ir_stream);
- if (unlikely(!stream)) {
+ if (G_UNLIKELY(!stream)) {
stream = fs_sink_stream_create(trace, ir_stream);
if (!stream) {
goto end;
const bt_clock_snapshot *cs = NULL;
stream = borrow_stream(fs_sink, ir_stream);
- if (unlikely(!stream)) {
+ if (G_UNLIKELY(!stream)) {
status = BT_SELF_COMPONENT_STATUS_ERROR;
goto end;
}
}
ret = fs_sink_stream_write_event(stream, cs, ir_event, ec);
- if (unlikely(ret)) {
+ if (G_UNLIKELY(ret)) {
status = BT_SELF_COMPONENT_STATUS_ERROR;
goto end;
}
const bt_clock_snapshot *cs = NULL;
stream = borrow_stream(fs_sink, ir_stream);
- if (unlikely(!stream)) {
+ if (G_UNLIKELY(!stream)) {
status = BT_SELF_COMPONENT_STATUS_ERROR;
goto end;
}
const bt_clock_snapshot *cs = NULL;
stream = borrow_stream(fs_sink, ir_stream);
- if (unlikely(!stream)) {
+ if (G_UNLIKELY(!stream)) {
status = BT_SELF_COMPONENT_STATUS_ERROR;
goto end;
}