From: Mathieu Desnoyers Date: Tue, 7 Feb 2012 04:29:20 +0000 (-0500) Subject: environment: write sysname, release, version, domain to metadata X-Git-Tag: v2.0-pre13~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=99dc95978f22d31ac51c03e2df5bbe9e7876ec6a;p=lttng-modules.git environment: write sysname, release, version, domain to metadata Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-events.c b/lttng-events.c index 674494bd..a01d0af8 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "wrapper/uuid.h" #include "wrapper/vmalloc.h" /* for wrapper_vmalloc_sync_all() */ #include "wrapper/random.h" @@ -938,6 +939,21 @@ int _lttng_session_metadata_statedump(struct lttng_session *session) if (ret) goto end; + ret = lttng_metadata_printf(session, + "env {\n" + " domain = \"%s\";\n" + " sysname = \"%s\";\n" + " release = \"%s\";\n" + " version = \"%s\";\n" + "};\n\n", + "kernel", + utsname()->sysname, + utsname()->release, + utsname()->version + ); + if (ret) + goto end; + ret = lttng_metadata_printf(session, "clock {\n" " name = %s;\n",