diff options
Diffstat (limited to 'kernel/trace/trace_functions.c')
| -rw-r--r-- | kernel/trace/trace_functions.c | 16 | 
1 files changed, 10 insertions, 6 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c index 5b781d2be383..ffd56351b521 100644 --- a/kernel/trace/trace_functions.c +++ b/kernel/trace/trace_functions.c @@ -58,12 +58,16 @@ int ftrace_create_function_files(struct trace_array *tr,  {  	int ret; -	/* The top level array uses the "global_ops". */ -	if (!(tr->flags & TRACE_ARRAY_FL_GLOBAL)) { -		ret = allocate_ftrace_ops(tr); -		if (ret) -			return ret; -	} +	/* +	 * The top level array uses the "global_ops", and the files are +	 * created on boot up. +	 */ +	if (tr->flags & TRACE_ARRAY_FL_GLOBAL) +		return 0; + +	ret = allocate_ftrace_ops(tr); +	if (ret) +		return ret;  	ftrace_create_filter_files(tr->ops, parent);  | 
