Re: [PATCH 0/2] Enable new kprobe event at boot

2019-05-22 Thread Masami Hiramatsu
On Wed, 22 May 2019 16:30:21 +0900 Masami Hiramatsu wrote: > On Wed, 22 May 2019 00:39:32 +0900 > Masami Hiramatsu wrote: > > > > Perhaps we could enable kprobes at early init? > > > > It should be possible, I will try to find what blocks it. I guess after we > > switch early_text_poke() to te

Re: [PATCH 0/2] Enable new kprobe event at boot

2019-05-22 Thread Masami Hiramatsu
On Wed, 22 May 2019 00:39:32 +0900 Masami Hiramatsu wrote: > > Perhaps we could enable kprobes at early init? > > It should be possible, I will try to find what blocks it. I guess after we > switch early_text_poke() to text_poke(), we can use kprobes on x86. But > for other archs, I need to inve

Re: [PATCH 0/2] Enable new kprobe event at boot

2019-05-21 Thread Masami Hiramatsu
On Tue, 21 May 2019 09:33:17 -0400 Steven Rostedt wrote: > On Tue, 21 May 2019 16:56:16 +0900 > Masami Hiramatsu wrote: > > > Note that 'trace_event=' option enables trace event at very early > > timing, but the events added by 'kprobe_event=' are enabled right > > before enabling device driver

Re: [PATCH 0/2] Enable new kprobe event at boot

2019-05-21 Thread Steven Rostedt
On Tue, 21 May 2019 16:56:16 +0900 Masami Hiramatsu wrote: > Note that 'trace_event=' option enables trace event at very early > timing, but the events added by 'kprobe_event=' are enabled right > before enabling device drivers at this point. It is enough for > tracing device driver initializatio

[PATCH 0/2] Enable new kprobe event at boot

2019-05-21 Thread Masami Hiramatsu
This series adds a kernel parameter, 'kprobe_event=' to add and enable new kprobe events at boot time. Currently ftrace can enable some existing trace events at boot time. This also allows admin/developer to add new kprobe-events at boot time to debug device drivers etc. The syntax is similar to