]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Replace (void *)1 with a meaningful macro name FTRACE_GRAPH_EMPTY
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 2 Feb 2017 15:15:22 +0000 (10:15 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Feb 2017 15:58:48 +0000 (10:58 -0500)
commita99fb52b82494dd0dc292da6c65b5811038de5b6
treef32cd06960de34b6d90f4bc018d1ee55ce735e39
parent97c89a5bb96f37e6ae250a99179efd0d163a69a6
ftrace: Replace (void *)1 with a meaningful macro name FTRACE_GRAPH_EMPTY

When the set_graph_function or set_graph_notrace contains no records, a
banner is displayed of either "#### all functions enabled ####" or
"#### all functions disabled ####" respectively. To tell the seq operations
to do this, (void *)1 is passed as a return value. Instead of using a
hardcoded meaningless variable, define it as a macro.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c