[POWERPC] Transparently handle <.symbol> lookup for kprobes
authorSrinivasa Ds <srinivasa@in.ibm.com>
Mon, 23 Apr 2007 05:58:49 +0000 (11:28 +0530)
committerPaul Mackerras <paulus@samba.org>
Wed, 2 May 2007 10:04:32 +0000 (20:04 +1000)
commiteb609e52d188775da738a1ffd1e982e6212c77d7
treec3fdca2f59b661210f7b44ddf6efc6c65ee16e86
parent14d1d2f25bca1c4ed45704c8019f6c971c40bba4
[POWERPC] Transparently handle <.symbol> lookup for kprobes

When data symbols are not present in kernel image, user needs to add
dot(".") before function name explicitly, that he wants to probe in kprobe
module on ppc64.

for ex:-
When data symbols are missing on ppc64,
====================
[root@llm27lp1 ~]# cat /proc/kallsyms | grep do_fork
c00000000006283c T .do_fork
==============================
User needs add "." to "do_fork"

kp.symbol_name = ".do_fork";
============================

This makes kprobe modules unportable.  This fixes the problem.

Signed-off-by: Srinivasa Ds <srinivasa@in.ibm.com>
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/kprobes.h