/*
* Compatible lttng-modules version.
*/
-#define KERN_MODULES_PRE_VERSION 1
-#define KERN_MODULES_PRE_PATCHLEVEL 9
+#define KERN_MODULES_PRE_MAJOR 1
+#define KERN_MODULES_PRE_MINOR 9
-#define KERN_MODULES_VERSION 2
-#define KERN_MODULES_PATCHLEVEL 0
-#define KERN_MODULES_SUBLEVEL 0
+#define KERN_MODULES_MAJOR 2
+#define KERN_MODULES_MINOR 0
struct kern_modules_param {
const char *name;
}
/* Validate version */
- if (version.version != KERN_MODULES_PRE_VERSION
- && version.version != KERN_MODULES_VERSION) {
+ if (version.major != KERN_MODULES_PRE_MAJOR
+ && version.major != KERN_MODULES_MAJOR) {
goto error_version;
}
- DBG2("Kernel tracer version validated (major version %d)", version.version);
+ DBG2("Kernel tracer version validated (major version %d)", version.major);
return 0;
error_version:
ERR("Kernel major version %d is not compatible (supporting <= %d)",
- version.version, KERN_MODULES_VERSION)
+ version.major, KERN_MODULES_MAJOR)
ret = -1;
error: