tracing/kprobes: Fix probe parsing
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 10 Feb 2010 16:23:47 +0000 (17:23 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Feb 2010 08:43:58 +0000 (09:43 +0100)
commita9bb18f36c8056f0712fb28c52c0f85d98438dfb
tree408900306e5730221cb026f9c8fe9bdc9ec14d7c
parent4f48f8b7fd18c44f8478174f9925cc3c059c6ce4
tracing/kprobes: Fix probe parsing

Trying to add a probe like:

  echo p:myprobe 0x10000 > /sys/kernel/debug/tracing/kprobe_events

will fail since the wrong pointer is passed to strict_strtoul
when trying to convert the address to an unsigned long.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20100210162346.GA6933@osiris.boeblingen.de.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_kprobe.c