diff options
| author | Marcin Nowakowski <[email protected]> | 2016-12-09 14:19:37 +0000 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2016-12-13 02:17:44 +0000 |
| commit | f18f97ac43d72ae84fe012dd4f19fe3f8f901469 (patch) | |
| tree | 7cea3fde1b2fda1c37fc6026110666e16e204969 /net/unix/af_unix.c | |
| parent | tracing/rb: Init the CPU mask on allocation (diff) | |
| download | kernel-f18f97ac43d72ae84fe012dd4f19fe3f8f901469.tar.gz kernel-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/[email protected]
Acked-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Marcin Nowakowski <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
