Skip to content
Commit f18f97ac authored by Marcin Nowakowski's avatar Marcin Nowakowski Committed by Steven Rostedt
Browse files

tracing/kprobes: Add a helper method to return number of probe hits



The number of probe hits is stored in a percpu variable and therefore
can't be read directly. Add a helper method trace_kprobe_nhit() that
performs the required calculation.

It will be used in a follow-up commit that changes kprobe selftests to
verify the number of probe hits.

Link: http://lkml.kernel.org/r/1481293178-3128-1-git-send-email-marcin.nowakowski@imgtec.com

Acked-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 99e6f6e8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment