[REFACTOR] new interface remove_uprobe()
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 1 Apr 2013 09:01:35 +0000 (13:01 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 1 Apr 2013 09:01:35 +0000 (13:01 +0400)
-static void remove_uprobe(struct kprobe *p, struct task_struct *task)
+static void remove_uprobe(struct uprobe *up)

uprobe/swap_uprobes.c

index bd97dd6..fd245d1 100644 (file)
@@ -380,8 +380,11 @@ struct kprobe *get_kprobe_by_insn_slot(void *addr, int tgid, struct task_struct
 #endif /* CONFIG_ARM */
 
 
-static void remove_uprobe(struct kprobe *p, struct task_struct *task)
+static void remove_uprobe(struct uprobe *up)
 {
+       struct kprobe *p = &up->kp;
+       struct task_struct *task = up->task;
+
        if (p->tgid == 0) {
                panic("remove_uprobe for tgid == 0!!!");
        }
@@ -622,7 +625,7 @@ valid_p:
                        synchronize_sched();
                }
 
-               remove_uprobe(p, up->task);
+               remove_uprobe(up);
        } else {
                if (p->break_handler) {
                        old_p->break_handler = NULL;