struct bt_stream_class *stream_class;
stream_class = bt_event_class_borrow_stream_class_inline(event_class);
- BT_ASSERT(stream_class);
+ BT_ASSERT_DBG(stream_class);
return bt_stream_class_borrow_trace_class(stream_class);
}
struct bt_stream *stream = (void *) c_stream;
struct bt_event *event;
- BT_ASSERT(stream);
+ BT_ASSERT_DBG(stream);
BT_ASSERT_PRE_NON_NULL(msg_iter, "Message iterator");
BT_ASSERT_PRE_NON_NULL(event_class, "Event class");
BT_ASSERT_PRE(event_class_has_trace(event_class),
"Event class is not part of a trace: %!+E", event_class);
stream_class = bt_event_class_borrow_stream_class_inline(event_class);
- BT_ASSERT(stream_class);
+ BT_ASSERT_DBG(stream_class);
BT_ASSERT_PRE((with_cs && stream_class->default_clock_class) ||
(!with_cs && !stream_class->default_clock_class),
"Creating an event message with a default clock snapshot, but without "
}
if (with_cs) {
- BT_ASSERT(stream_class->default_clock_class);
+ BT_ASSERT_DBG(stream_class->default_clock_class);
message->default_cs = bt_clock_snapshot_create(
stream_class->default_clock_class);
if (!message->default_cs) {
bt_clock_snapshot_set_raw_value(message->default_cs, raw_value);
}
- BT_ASSERT(!message->event);
+ BT_ASSERT_DBG(!message->event);
message->event = event;
if (packet) {
struct bt_message_event *event_msg = (void *) msg;
struct bt_graph *graph;
- BT_ASSERT(event_msg);
+ BT_ASSERT_DBG(event_msg);
if (G_UNLIKELY(!msg->graph)) {
bt_message_event_destroy(msg);
BT_LIB_LOGD("Recycling event message: %![msg-]+n, %![event-]+e",
msg, event_msg->event);
bt_message_reset(msg);
- BT_ASSERT(event_msg->event);
+ BT_ASSERT_DBG(event_msg->event);
bt_event_recycle(event_msg->event);
event_msg->event = NULL;
BT_ASSERT_PRE_DEV_MSG_IS_TYPE(msg, BT_MESSAGE_TYPE_EVENT);
stream_class = bt_event_class_borrow_stream_class_inline(
event_msg->event->class);
- BT_ASSERT(stream_class);
+ BT_ASSERT_DBG(stream_class);
BT_ASSERT_PRE_DEV(stream_class->default_clock_class,
"Message's stream's class has no default clock class: "
"%![msg-]+n, %![sc-]+S", msg, stream_class);
BT_ASSERT_PRE_DEV_MSG_IS_TYPE(msg, BT_MESSAGE_TYPE_EVENT);
stream_class = bt_event_class_borrow_stream_class_inline(
event_msg->event->class);
- BT_ASSERT(stream_class);
+ BT_ASSERT_DBG(stream_class);
return stream_class->default_clock_class;
}