[REFACTOR] move declaration sched_addr
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 29 May 2013 11:06:08 +0000 (15:06 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 29 May 2013 11:06:08 +0000 (15:06 +0400)
kprobe/dbi_kprobes.c
kprobe/dbi_kprobes.h
kprobe/dbi_kprobes_deps.c
kprobe/dbi_kprobes_deps.h

index 20d7041..7bc03f5 100644 (file)
@@ -64,6 +64,7 @@
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 
+unsigned long sched_addr;
 static unsigned long exit_addr;
 static unsigned long do_group_exit_addr;
 static unsigned long sys_exit_group_addr;
index 17eb49c..e3a6110 100644 (file)
@@ -270,6 +270,7 @@ extern struct hlist_head kprobe_table[KPROBE_TABLE_SIZE];
 //extern struct hlist_head kretprobe_inst_table[KPROBE_TABLE_SIZE];
 extern atomic_t kprobe_count;
 extern struct kretprobe *sched_rp;
+extern unsigned long sched_addr;
 
 struct kprobe *kprobe_running (void);
 void reset_current_kprobe (void);
index 667c283..bc409ae 100644 (file)
@@ -36,8 +36,6 @@
 #include <linux/slab.h>
 #include <linux/mm.h>
 
-unsigned long sched_addr;
-
 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 29)
 /* kernel define 'pgd_offset_k' redefinition */
 #undef pgd_offset_k
index 43c9879..58c8090 100644 (file)
@@ -94,8 +94,6 @@ int access_process_vm_atomic(struct task_struct *tsk, unsigned long addr, void *
 #define write_proc_vm_atomic(tsk, addr, buf, len)      access_process_vm_atomic (tsk, addr, buf, len, 1)
 int page_present (struct mm_struct *mm, unsigned long addr);
 
-extern unsigned long sched_addr;
-
 DECLARE_MOD_DEP_WRAPPER (__flush_anon_page, \
                        void, struct vm_area_struct *vma, \
                        struct page *page, unsigned long vmaddr);