Re: [PATCH 1/2] tracing/kprobes: add a helper method to return number of probe hits

From: Steven Rostedt
Date: Fri Dec 09 2016 - 09:00:59 EST


On Fri, 9 Dec 2016 13:25:51 +0100
Marcin Nowakowski <marcin.nowakowski@xxxxxxxxxx> wrote:

> 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.

Can you please add the "why?" to this change log. Who needs this
functionality, and why?

-- Steve