]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/kprobe: Add kprobe_event= boot parameter
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 22 May 2019 08:32:35 +0000 (17:32 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 26 May 2019 03:04:43 +0000 (23:04 -0400)
commit9d511b8da435ffbfb7a5e3cd6b23235dc222f155
tree248dc5fdbf865d8f0a835742d449a7bdfa664cd2
parentb63b434d205a88f33b2755b4d72141a0a3706b92
tracing/kprobe: Add kprobe_event= boot parameter

Add kprobe_event= boot parameter to define kprobe events
at boot time.
The definition syntax is similar to tracefs/kprobe_events
interface, but use ',' and ';' instead of ' ' and '\n'
respectively. e.g.

  kprobe_event=p,vfs_read,$arg1,$arg2

This puts a probe on vfs_read with argument1 and 2, and
enable the new event.

Link: http://lkml.kernel.org/r/155851395498.15728.830529496248543583.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Documentation/admin-guide/kernel-parameters.txt
Documentation/trace/kprobetrace.rst
kernel/trace/trace_kprobe.c