From e442b41e5625941c7f701d167bcd7a4aa4cfb77b Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 22 Nov 2016 05:27:02 -0500 Subject: [PATCH] babeltrace.c: show beginning and end timestamps if available MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- converter/babeltrace.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/converter/babeltrace.c b/converter/babeltrace.c index 62cff404..10fe23e0 100644 --- a/converter/babeltrace.c +++ b/converter/babeltrace.c @@ -207,6 +207,22 @@ void print_bt_config_component(struct bt_config_component *bt_config_component) { printf(" %s.%s\n", bt_config_component->plugin_name->str, bt_config_component->component_name->str); + printf(" begin timestamp: "); + + if (bt_config_component->begin_ns == -1ULL) { + printf("not set\n"); + } else { + printf("%" PRIu64 " ns\n", bt_config_component->begin_ns); + } + + printf(" end timestamp: "); + + if (bt_config_component->end_ns == -1ULL) { + printf("not set\n"); + } else { + printf("%" PRIu64 " ns\n", bt_config_component->end_ns); + } + printf(" params:\n"); print_value(bt_config_component->params, 6, true); } -- 2.34.1