Re: [PATCH] trace: Add trace any kernel object

From: Steven Rostedt
Date: Wed Oct 20 2021 - 15:07:19 EST


On Thu, 21 Oct 2021 00:04:40 +0800
Huan Xie <xiehuan09@xxxxxxxxx> wrote:

> Thanks. The trigger seems to work in combination with kprobe/uprobe/eprobe.
>
> I have been trying to implement this feature in recent days, But my
> code does not look very elegant at the moment :-)

Feel free to post what you have. I swear I wont judge you based on your code
;-)

Just add "[RFC]" to the subject of your patches, to let us know it's not
for inclusion.

>
> It seems the result of 'cat trace' should also need to be filtered,
> Because it will output the functions we don’t want to care about.

We can work to make it attached to "set_ftrace_pid" and "set_ftrace_filter"
and friends, so that it can easily be filtered.

>
> I didn't expect this idea to be a relatively large project. :-)

Kernel updates never are what you expect them to be come ;-)

-- Steve