uprobes/perf: Always increment trace_uprobe->nhit
authorOleg Nesterov <oleg@redhat.com>
Thu, 31 Jan 2013 18:55:27 +0000 (19:55 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 17:24:34 +0000 (18:24 +0100)
commit1b47aefd9b6bd439a4be43c47acd22987ac22db8
treea3d0a40ce94f7e57d4375a77a0c74c0001b4bb67
parenta932b7381f81235530c3d0acbd3ba2c7537d78e5
uprobes/perf: Always increment trace_uprobe->nhit

Move tu->nhit++ from uprobe_trace_func() to uprobe_dispatcher().

->nhit counts how many time we hit the breakpoint inserted by this
uprobe, we do not want to loose this info if uprobe was enabled by
sys_perf_event_open().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/trace/trace_uprobe.c