X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Ftext%2Fdmesg%2Fdmesg.c;h=b10c94252201c2a040bb22e932ce2475411fd5d9;hb=71c5da58f2e63c0ea0df3b603d615f5aa3dde008;hp=914ae06361e6db2a583a6c90deb4a88b4d21e5f9;hpb=d608d675ff4786be4965accf15eff5311a9fba0d;p=babeltrace.git diff --git a/plugins/text/dmesg/dmesg.c b/plugins/text/dmesg/dmesg.c index 914ae063..b10c9425 100644 --- a/plugins/text/dmesg/dmesg.c +++ b/plugins/text/dmesg/dmesg.c @@ -28,12 +28,12 @@ #include #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #define NSEC_PER_USEC 1000UL @@ -141,7 +141,8 @@ int create_meta(struct dmesg_component *dmesg_comp, bool has_ts) if (has_ts) { dmesg_comp->clock_class = bt_clock_class_create( - dmesg_comp->trace_class); + bt_self_component_source_as_self_component( + dmesg_comp->self_comp)); if (!dmesg_comp->clock_class) { BT_LOGE_STR("Cannot create clock class."); goto error; @@ -160,6 +161,11 @@ int create_meta(struct dmesg_component *dmesg_comp, bool has_ts) BT_LOGE_STR("Cannot set stream class's default clock class."); goto error; } + + bt_stream_class_set_packets_have_beginning_default_clock_snapshot( + dmesg_comp->stream_class, BT_TRUE); + bt_stream_class_set_packets_have_end_default_clock_snapshot( + dmesg_comp->stream_class, BT_TRUE); } dmesg_comp->event_class = bt_event_class_create( @@ -298,12 +304,6 @@ int create_packet_and_stream_and_trace(struct dmesg_component *dmesg_comp) goto error; } - ret = bt_trace_make_static(dmesg_comp->trace); - if (ret) { - BT_LOGE_STR("Cannot make trace static."); - goto error; - } - goto end; error: