X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Ftext%2Fdmesg%2Fdmesg.c;h=d8afa858c4af47006a1d8d2a51603c0cb4de0c76;hb=7fcdb0a96f75d66f5ff4f32d3ca78d7ca6067e4c;hp=29cef2f59d1e782f0c2565ca76f665e035ace1d8;hpb=2d6bab5c19eff3d1db38c9b8a2c77e99fe5a2922;p=babeltrace.git diff --git a/plugins/text/dmesg/dmesg.c b/plugins/text/dmesg/dmesg.c index 29cef2f5..d8afa858 100644 --- a/plugins/text/dmesg/dmesg.c +++ b/plugins/text/dmesg/dmesg.c @@ -141,17 +141,18 @@ 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; } /* - * The `dmesg` timestamp is not absolute, it's relative - * to the boot time. + * The `dmesg` timestamp's origin is not the Unix epoch, + * it's the boot time. */ - bt_clock_class_set_is_absolute(dmesg_comp->clock_class, + bt_clock_class_set_origin_is_unix_epoch(dmesg_comp->clock_class, BT_FALSE); ret = bt_stream_class_set_default_clock_class(