[FIX] remove support multi uprobes 25/30525/2
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 19 Nov 2014 12:34:09 +0000 (16:34 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 19 Nov 2014 13:19:03 +0000 (17:19 +0400)
Change-Id: Ic28bde19b71b6139fe3de1799f23035a497ae8b0
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
uprobe/swap_uprobes.c

index c8ffd51..b307668 100644 (file)
@@ -497,6 +497,13 @@ int swap_register_uprobe(struct uprobe *up)
        // get the first item
        old_p = get_ukprobe(p->addr, kp2up(p)->task->tgid);
        if (old_p) {
+               struct task_struct *task = up->task;
+
+               /* TODO: add support many uprobes on address */
+               printk("uprobe on task[%u %u %s] vaddr=%p is there\n",
+                      task->tgid, task->pid, task->comm, p->addr);
+               ret = -EINVAL;
+               goto out;
 #ifdef CONFIG_ARM
                p->safe_arm = old_p->safe_arm;
                p->safe_thumb = old_p->safe_thumb;