Re: [PATCH] ftrace: add simple oneshot function tracer

From: Steven Rostedt
Date: Tue Jun 11 2019 - 17:57:14 EST


On Tue, 11 Jun 2019 22:33:11 +0200
Thomas Preisner <linux@xxxxxxxxxxxx> wrote:

> However, due to there not being any mechanism (that I am aware of) to
> activate such stat tracers via kernel commandline this oneshot profiler
> is now always active when selected. Therefore, it is no longer possible
> to disable this tracer during runtime and thus, allocated memory is no
> longer freed.

What do you mean? The function profile has its own file to enable it:

echo 1 > /sys/kernel/tracing/function_profile_enabled

And disable it:

echo 0 > /sys/kernel/tracing/function_profile_enabled

-- Steve