In addition to patches introduced by commit f45d1225adb0 "tracing: Kernel access to Ftrace instances") we also need the following patches to reliably access ftrace instances from other kernel modules or components.
Please review the patches that follow. Divya Indi (7): tracing: Required changes to use ftrace_set_clr_event. tracing: Declare newly exported APIs in include/linux/trace.h tracing: Verify if trace array exists before destroying it. tracing: Adding NULL checks tracing: Handle the trace array ref counter in new functions tracing: New functions for kernel access to Ftrace instances tracing: Un-export ftrace_set_clr_event include/linux/trace.h | 10 +++++ include/linux/trace_events.h | 2 + kernel/trace/trace.c | 90 ++++++++++++++++++++++++++++++++++++++++++-- kernel/trace/trace.h | 4 +- kernel/trace/trace_events.c | 25 +++++++++++- 5 files changed, 123 insertions(+), 8 deletions(-) -- 1.8.3.1

