tracing/kprobes: Don't pass addr=ip to perf_trace_buf_submit()
authorOleg Nesterov <oleg@redhat.com>
Thu, 20 Jun 2013 17:38:11 +0000 (19:38 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Jul 2013 00:34:28 +0000 (20:34 -0400)
commitcf6735a4b103b801753748531e3658cdc8cafa5e
tree40515decc18c446690a9a44d42d42f74b96e657b
parent10246fa35d4ffdfe472185d4cbf9c2dfd9a9f023
tracing/kprobes: Don't pass addr=ip to perf_trace_buf_submit()

kprobe_perf_func() and kretprobe_perf_func() pass addr=ip to
perf_trace_buf_submit() for no reason.

This sets perf_sample_data->addr for PERF_SAMPLE_ADDR, we already
have perf_sample_data->ip initialized if PERF_SAMPLE_IP.

Link: http://lkml.kernel.org/r/20130620173811.GA13161@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c