From 5a1b2e6e67e0be4897c9527247cdfb7a11244675 Mon Sep 17 00:00:00 2001 From: Vyacheslav Cherkashin Date: Wed, 19 Nov 2014 16:34:09 +0400 Subject: [PATCH] [FIX] remove support multi uprobes Change-Id: Ic28bde19b71b6139fe3de1799f23035a497ae8b0 Signed-off-by: Vyacheslav Cherkashin --- uprobe/swap_uprobes.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/uprobe/swap_uprobes.c b/uprobe/swap_uprobes.c index c8ffd51..b307668 100644 --- a/uprobe/swap_uprobes.c +++ b/uprobe/swap_uprobes.c @@ -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; -- 2.7.4