diff options
author | Vyacheslav Cherkashin <v.cherkashin@samsung.com> | 2013-05-29 13:56:10 +0400 |
---|---|---|
committer | Vyacheslav Cherkashin <v.cherkashin@samsung.com> | 2013-05-29 13:56:10 +0400 |
commit | 6cc7ba08004c2e0f002745447ce4b683219e381a (patch) | |
tree | fd11c4cd3144dc678301e33ef6b84df1ecd40caf /kprobe | |
parent | a8a44b9a969008779405b59615d0b4dc57fba43b (diff) | |
download | swap-modules-6cc7ba08004c2e0f002745447ce4b683219e381a.tar.gz swap-modules-6cc7ba08004c2e0f002745447ce4b683219e381a.tar.bz2 swap-modules-6cc7ba08004c2e0f002745447ce4b683219e381a.zip |
[REFACTOR] move declaration *exit*_addr
variables:
exit_addr
do_group_exit_addr
sys_exit_group_addr
sys_exit_addr
Diffstat (limited to 'kprobe')
-rw-r--r-- | kprobe/dbi_kprobes.c | 5 | ||||
-rw-r--r-- | kprobe/dbi_kprobes_deps.c | 4 | ||||
-rw-r--r-- | kprobe/dbi_kprobes_deps.h | 4 |
3 files changed, 5 insertions, 8 deletions
diff --git a/kprobe/dbi_kprobes.c b/kprobe/dbi_kprobes.c index 817cac55..fd653c0c 100644 --- a/kprobe/dbi_kprobes.c +++ b/kprobe/dbi_kprobes.c @@ -64,6 +64,11 @@ #include <linux/mm.h> #include <linux/pagemap.h> +static unsigned long exit_addr; +static unsigned long do_group_exit_addr; +static unsigned long sys_exit_group_addr; +static unsigned long sys_exit_addr; + struct slot_manager sm; DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; diff --git a/kprobe/dbi_kprobes_deps.c b/kprobe/dbi_kprobes_deps.c index 6b8e4554..07fe4a63 100644 --- a/kprobe/dbi_kprobes_deps.c +++ b/kprobe/dbi_kprobes_deps.c @@ -38,10 +38,6 @@ unsigned long sched_addr; unsigned long fork_addr; -unsigned long exit_addr; -unsigned long sys_exit_group_addr; -unsigned long do_group_exit_addr; -unsigned long sys_exit_addr; #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 29) /* kernel define 'pgd_offset_k' redefinition */ diff --git a/kprobe/dbi_kprobes_deps.h b/kprobe/dbi_kprobes_deps.h index 7d6a8c5f..8024d99e 100644 --- a/kprobe/dbi_kprobes_deps.h +++ b/kprobe/dbi_kprobes_deps.h @@ -96,10 +96,6 @@ int page_present (struct mm_struct *mm, unsigned long addr); extern unsigned long sched_addr; extern unsigned long fork_addr; -extern unsigned long exit_addr; -extern unsigned long sys_exit_group_addr; -extern unsigned long do_group_exit_addr; -extern unsigned long sys_exit_addr; DECLARE_MOD_DEP_WRAPPER (__flush_anon_page, \ void, struct vm_area_struct *vma, \ |