From ba0dcff5c3d4c61ad95b53d5721d8fb72ee4f457 Mon Sep 17 00:00:00 2001 From: Vyacheslav Cherkashin Date: Wed, 29 May 2013 14:57:15 +0400 Subject: [REFACTOR] remove variable fork_addr --- kprobe/dbi_kprobes.c | 2 -- kprobe/dbi_kprobes_deps.c | 1 - kprobe/dbi_kprobes_deps.h | 1 - 3 files changed, 4 deletions(-) diff --git a/kprobe/dbi_kprobes.c b/kprobe/dbi_kprobes.c index fd653c0c..20d70418 100644 --- a/kprobe/dbi_kprobes.c +++ b/kprobe/dbi_kprobes.c @@ -987,14 +987,12 @@ static int init_module_deps(void) int ret; sched_addr = swap_ksyms("__switch_to"); - fork_addr = swap_ksyms("do_fork"); exit_addr = swap_ksyms("do_exit"); sys_exit_group_addr = swap_ksyms("sys_exit_group"); do_group_exit_addr = swap_ksyms("do_group_exit"); sys_exit_addr = swap_ksyms("sys_exit"); if (sched_addr == 0 || - fork_addr == 0 || exit_addr == 0 || sys_exit_group_addr == 0 || do_group_exit_addr == 0 || diff --git a/kprobe/dbi_kprobes_deps.c b/kprobe/dbi_kprobes_deps.c index 07fe4a63..667c283e 100644 --- a/kprobe/dbi_kprobes_deps.c +++ b/kprobe/dbi_kprobes_deps.c @@ -37,7 +37,6 @@ #include unsigned long sched_addr; -unsigned long fork_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 8024d99e..43c9879d 100644 --- a/kprobe/dbi_kprobes_deps.h +++ b/kprobe/dbi_kprobes_deps.h @@ -95,7 +95,6 @@ int access_process_vm_atomic(struct task_struct *tsk, unsigned long addr, void * int page_present (struct mm_struct *mm, unsigned long addr); extern unsigned long sched_addr; -extern unsigned long fork_addr; DECLARE_MOD_DEP_WRAPPER (__flush_anon_page, \ void, struct vm_area_struct *vma, \ -- cgit v1.2.3