From: Masami Hiramatsu Date: Thu, 9 May 2013 05:44:24 +0000 (+0900) Subject: tracing/kprobes: Fix to increment return event probe hit-count X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cce2c8f26704529f592fc124c7c6ad399940dc5d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git tracing/kprobes: Fix to increment return event probe hit-count Fix to increment probe hit-count for function return event. Link: http://lkml.kernel.org/r/20130509054424.30398.34058.stgit@mhiramat-M0-7522 Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Tom Zanussi Cc: Oleg Nesterov Cc: Srikar Dronamraju Signed-off-by: Masami Hiramatsu Signed-off-by: Steven Rostedt --- diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 1865d5f76538..69286337fd7e 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c @@ -767,6 +767,8 @@ static __kprobes void kretprobe_trace_func(struct kretprobe_instance *ri, unsigned long irq_flags; struct ftrace_event_call *call = &tp->call; + tp->nhit++; + local_save_flags(irq_flags); pc = preempt_count();