Re: subj: [PATHC] user-defined profiling

From: William Lee Irwin III
Date: Mon Nov 01 2004 - 12:44:07 EST


On Tue, Nov 02, 2004 at 01:33:53AM +0900, Akinobu Mita wrote:
> This patch provides support for user-defined profiling. It is
> inspired by scheduler profiling.
> If you put the following code into interesting function
> profile_hit(USR_PROFILNG, __buildin_return_address(0));
> and boot with profile=user then the readprofile shows which functions
> called it, and how many times.
> Furthermore I much prefer to insert the user-defined profile point
> with Kprobe. This is why the profile_hits() was exported.
> Please apply.
> Signed-off-by Akinobu Mita <amgta@xxxxxxxxxxxxxxx>

It makes sense, though I wouldn't mind getting a look at who calls this.
Looking at the callee in isolation leaves me vaguely puzzled.


-- wli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/