[REFACTOR] move definition 'struct hlist_head kernel_probes'
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 22 Apr 2013 16:42:07 +0000 (20:42 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 23 Apr 2013 08:52:05 +0000 (12:52 +0400)
from src/modules/driver/storage.c
to src/modules/driver/probes_manager.c

driver/probes_manager.c
driver/storage.c
driver/storage.h

index 9e4e887..d86fc7e 100644 (file)
@@ -21,6 +21,9 @@
 #include "module.h"
 #include "probes_manager.h"
 
+/* list of selected non-predefined kernel probes */
+static HLIST_HEAD(kernel_probes);
+
 int
 probes_manager_init (void)
 {
index ea0b656..9925e0c 100644 (file)
@@ -39,7 +39,6 @@ inst_dex_proc_t dex_proc_info;
 char *deps;
 char *bundle;
 unsigned int inst_pid = 0;
-struct hlist_head kernel_probes;
 int event_mask = 0L;
 struct cond cond_list;
 int paused = 0; /* a state after a stop condition (events are not collected) */
@@ -1077,8 +1076,6 @@ int storage_init (void)
                return -1;
        }
 
-       INIT_HLIST_HEAD(&kernel_probes);
-
        spin_lock_init(&dbi_mh.lock);
        INIT_LIST_HEAD(&dbi_mh.modules_handlers);
        return 0;
index 70b7320..6fa0f40 100644 (file)
@@ -100,9 +100,6 @@ extern int get_predef_uprobes(ioctl_predef_uprobes_info_t *data);
 // internal bookkeeping of storage
 extern char *p_buffer;
 
-// list of selected non-predefined kernel probes
-extern struct hlist_head kernel_probes;
-
 // multiple handlers stuff
 /*struct dbi_modules_handlers {
        struct list_head        modules_handlers;