lib: create a clock class object from component
[babeltrace.git] / plugins / text / dmesg / dmesg.c
index 29cef2f59d1e782f0c2565ca76f665e035ace1d8..d8afa858c4af47006a1d8d2a51603c0cb4de0c76 100644 (file)
@@ -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(
This page took 0.025833 seconds and 4 git commands to generate.