From: Philippe Proulx Date: Tue, 19 Feb 2019 16:05:01 +0000 (-0500) Subject: src.text.dmesg: make clock class non-absolute X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8b904eeb6000c11a80b15b48c215a1cf9d107ad7;p=deliverable%2Fbabeltrace.git src.text.dmesg: make clock class non-absolute The `dmesg` command's timestamps are not absolute; they are relative to the boot time. Signed-off-by: Philippe Proulx --- diff --git a/plugins/text/dmesg/dmesg.c b/plugins/text/dmesg/dmesg.c index aac38c23e..90d1d634b 100644 --- a/plugins/text/dmesg/dmesg.c +++ b/plugins/text/dmesg/dmesg.c @@ -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) {