OSDN Git Service

tracing: Kernel access to Ftrace instances
authorDivya Indi <divya.indi@oracle.com>
Wed, 20 Mar 2019 18:28:51 +0000 (11:28 -0700)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 2 Apr 2019 22:24:06 +0000 (18:24 -0400)
commitf45d1225adb0479478cee989e2ae2d7d2c62b31b
tree26f5a37a5e1d60fd553a2cf583c19ac9df49d9a9
parent40ed29b373381532ef222e509c5aa69a1d8561ea
tracing: Kernel access to Ftrace instances

Ftrace provides the feature “instances” that provides the capability to
create multiple Ftrace ring buffers. However, currently these buffers
are created/accessed via userspace only. The kernel APIs providing these
features are not exported, hence cannot be used by other kernel
components.

This patch aims to extend this infrastructure to provide the
flexibility to create/log/remove/ enable-disable existing trace events
to these buffers from within the kernel.

Link: http://lkml.kernel.org/r/1553106531-3281-2-git-send-email-divya.indi@oracle.com
Signed-off-by: Divya Indi <divya.indi@oracle.com>
Reviewed-by: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace_events.c