Skip to content

Commit 595a438

Browse files
evdenisrostedt
authored andcommitted
tracing: Make exported ftrace_set_clr_event non-static
The function ftrace_set_clr_event is declared static and marked EXPORT_SYMBOL_GPL(), which is at best an odd combination. Because the function was decided to be a part of API, this commit removes the static attribute and adds the declaration to the header. Link: http://lkml.kernel.org/r/[email protected] Fixes: f45d122 ("tracing: Kernel access to Ftrace instances") Reviewed-by: Joe Jin <[email protected]> Signed-off-by: Denis Efremov <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 5b0022d commit 595a438

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/linux/trace_events.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ extern int trace_event_get_offsets(struct trace_event_call *call);
548548

549549
#define is_signed_type(type) (((type)(-1)) < (type)1)
550550

551+
int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set);
551552
int trace_set_clr_event(const char *system, const char *event, int set);
552553

553554
/*

kernel/trace/trace_events.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ static int __ftrace_set_clr_event(struct trace_array *tr, const char *match,
787787
return ret;
788788
}
789789

790-
static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set)
790+
int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set)
791791
{
792792
char *event = NULL, *sub = NULL, *match;
793793
int ret;

0 commit comments

Comments
 (0)