From 893ded2b62431f77937b2e1973d21ea8f46512e4 Mon Sep 17 00:00:00 2001 From: "Guilherme G. Piccoli" Date: Wed, 31 Mar 2021 19:24:32 -0300 Subject: [PATCH] Show driver version on modinfo Currently, modinfo lacks the version information on sysdig module. This patch just adds that information. Signed-off-by: Guilherme G. Piccoli --- driver/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver/main.c b/driver/main.c index 2772f6f20f..85f40e5e84 100644 --- a/driver/main.c +++ b/driver/main.c @@ -2630,6 +2630,8 @@ void sysdig_exit(void) module_init(sysdig_init); module_exit(sysdig_exit); +MODULE_VERSION(PROBE_VERSION); + module_param(max_consumers, uint, 0444); MODULE_PARM_DESC(max_consumers, "Maximum number of consumers that can simultaneously open the devices"); #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 20)