Use "trace_array_set_clr_event" to enable/disable events to a trace array from other kernel modules/components. Hence, we no longer need to have ftrace_set_clr_event as an exported API.
Signed-off-by: Divya Indi <[email protected]> Reviewed-By: Aruna Ramakrishna <[email protected]> --- include/linux/trace_events.h | 1 - kernel/trace/trace_events.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 6da3600..025ae2b 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -542,7 +542,6 @@ extern int trace_define_field(struct trace_event_call *call, const char *type, int trace_set_clr_event(const char *system, const char *event, int set); int trace_array_set_clr_event(struct trace_array *tr, const char *system, const char *event, int set); -int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set); /* * The double __builtin_constant_p is because gcc will give us an error diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 9ee6b52..96dd997 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -795,7 +795,7 @@ static int __ftrace_set_clr_event(struct trace_array *tr, const char *match, return ret; } -int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) +static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) { char *event = NULL, *sub = NULL, *match; int ret; @@ -834,7 +834,6 @@ int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) return ret; } -EXPORT_SYMBOL_GPL(ftrace_set_clr_event); /** * trace_set_clr_event - enable or disable an event -- 1.8.3.1

