[FIX] remove all probes on syscall
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 9 Jul 2013 11:56:16 +0000 (15:56 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 9 Jul 2013 11:56:16 +0000 (15:56 +0400)
when unload ks_feature module

ks_features/ks_features.c

index f2082f5..9bdc473 100644 (file)
@@ -227,6 +227,12 @@ static int __init init_ks_feature(void)
 
 static void __exit exit_ks_feature(void)
 {
+       int id;
+
+       for (id = 0; id < syscall_name_cnt; ++id) {
+               if (get_counter(id) > 0)
+                       unregister_syscall(id);
+       }
 }
 
 module_init(init_ks_feature);