{
struct lttng_kernel_tracer_version v;
- v.version = LTTNG_VERSION;
- v.patchlevel = LTTNG_PATCHLEVEL;
- v.sublevel = LTTNG_SUBLEVEL;
+ v.major = LTTNG_MODULES_MAJOR_VERSION;
+ v.minor = LTTNG_MODULES_MINOR_VERSION;
+ v.patchlevel = LTTNG_MODULES_PATCHLEVEL_VERSION;
if (copy_to_user(uversion_param, &v, sizeof(v)))
return -EFAULT;
};
struct lttng_kernel_tracer_version {
- uint32_t version;
+ uint32_t major;
+ uint32_t minor;
uint32_t patchlevel;
- uint32_t sublevel;
};
enum lttng_kernel_calibrate_type {
lttng_alignof(uint16_t) * CHAR_BIT,
lttng_alignof(uint32_t) * CHAR_BIT,
lttng_alignof(uint64_t) * CHAR_BIT,
- CTF_VERSION_MAJOR,
- CTF_VERSION_MINOR,
+ CTF_SPEC_MAJOR,
+ CTF_SPEC_MINOR,
uuid_s,
#ifdef __BIG_ENDIAN
"be"
ret = lttng_metadata_printf(session,
"env {\n"
- " domain = \"%s\";\n"
+ " domain = \"kernel\";\n"
" sysname = \"%s\";\n"
- " release = \"%s\";\n"
- " version = \"%s\";\n"
+ " kernel_release = \"%s\";\n"
+ " kernel_version = \"%s\";\n"
+ " tracer_name = \"lttng-modules\";\n"
+ " tracer_major = %d;\n"
+ " tracer_minor = %d;\n"
+ " tracer_patchlevel = %d;\n"
"};\n\n",
- "kernel",
utsname()->sysname,
utsname()->release,
- utsname()->version
+ utsname()->version,
+ LTTNG_MODULES_MAJOR_VERSION,
+ LTTNG_MODULES_MINOR_VERSION,
+ LTTNG_MODULES_PATCHLEVEL_VERSION
);
if (ret)
goto end;
#include "lttng-tracer-core.h"
#include "lttng-events.h"
-#define LTTNG_VERSION 1
-#define LTTNG_PATCHLEVEL 9
-#define LTTNG_SUBLEVEL 9
+#define LTTNG_MODULES_MAJOR_VERSION 2
+#define LTTNG_MODULES_MINOR_VERSION 0
+#define LTTNG_MODULES_PATCHLEVEL_VERSION 0
#ifndef CHAR_BIT
#define CHAR_BIT 8
#define CTF_SPEC_MAJOR 1
#define CTF_SPEC_MINOR 8
-/* Tracer major/minor versions */
-#define CTF_VERSION_MAJOR 0
-#define CTF_VERSION_MINOR 1
-
/*
* Number of milliseconds to retry before failing metadata writes on buffer full
* condition. (10 seconds)