src.text.dmesg: make clock class non-absolute
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 19 Feb 2019 16:05:01 +0000 (11:05 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:38 +0000 (18:19 -0400)
The `dmesg` command's timestamps are not absolute; they are relative to
the boot time.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
plugins/text/dmesg/dmesg.c

index aac38c23e3fa294a17f08d001a91f115c57ed806..90d1d634b3b3330ec7fd9a357bce9ad6f676e171 100644 (file)
@@ -147,6 +147,13 @@ int create_meta(struct dmesg_component *dmesg_comp, bool has_ts)
                        goto error;
                }
 
+               /*
+                * The `dmesg` timestamp is not absolute, it's relative
+                * to the boot time.
+                */
+               bt_clock_class_set_is_absolute(dmesg_comp->clock_class,
+                       BT_FALSE);
+
                ret = bt_stream_class_set_default_clock_class(
                        dmesg_comp->stream_class, dmesg_comp->clock_class);
                if (ret) {
This page took 0.027334 seconds and 4 git commands to generate.