aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/ftrace/ftracetest
diff options
context:
space:
mode:
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>2016-12-09 15:19:37 +0100
committerSteven Rostedt <rostedt@goodmis.org>2016-12-12 21:17:44 -0500
commitf18f97ac43d72ae84fe012dd4f19fe3f8f901469 (patch)
tree7cea3fde1b2fda1c37fc6026110666e16e204969 /tools/testing/selftests/ftrace/ftracetest
parenttracing/rb: Init the CPU mask on allocation (diff)
downloadlinux-dev-f18f97ac43d72ae84fe012dd4f19fe3f8f901469.tar.xz
linux-dev-f18f97ac43d72ae84fe012dd4f19fe3f8f901469.zip
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: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions