File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5004,14 +5004,23 @@ static void __init install_kprobe(void)
5004
5004
}
5005
5005
}
5006
5006
5007
+ #define SMITH_SRCID (name ) \
5008
+ #name; \
5009
+ static char *sid_##name = #name; \
5010
+ module_param(sid_##name, charp, S_IRUSR|S_IRGRP|S_IROTH)
5011
+
5012
+ /* latest commit id */
5013
+ static char * smith_srcid = SMITH_SRCID (6638bb c49a041916c5a5e5c325f6cb3ca9498581 );
5014
+
5007
5015
static int __init kprobe_hook_init (void )
5008
5016
{
5009
5017
int ret ;
5010
5018
5011
5019
#if defined(MODULE )
5012
- printk (KERN_INFO "[ELKEID] loading kmod %s (%s). \n" ,
5013
- THIS_MODULE -> name , THIS_MODULE -> version );
5020
+ printk (KERN_INFO "[ELKEID] kmod: %s (%s / %s) loaded \n" ,
5021
+ THIS_MODULE -> name , THIS_MODULE -> version , THIS_MODULE -> srcversion );
5014
5022
#endif
5023
+ printk (KERN_INFO "[ELKEID] srcid: %s\n" , smith_srcid );
5015
5024
5016
5025
ret = kernel_symbols_init ();
5017
5026
if (ret )
You can’t perform that action at this time.
0 commit comments