diff options
| author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-07-26 12:07:32 -0400 |
|---|---|---|
| committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-07-27 09:36:20 -0400 |
| commit | 87107a25a2f857693156f075da6e2a1438f4b4a0 (patch) | |
| tree | cd873d9dd4fd322f7b1eec85fc8cc97d2b83e6b5 /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | tracing: Remove orphaned function ftrace_nr_registered_ops() (diff) | |
| download | linux-87107a25a2f857693156f075da6e2a1438f4b4a0.tar.gz linux-87107a25a2f857693156f075da6e2a1438f4b4a0.zip | |
tracing/kprobes: Simplify the logic of enable_trace_kprobe()
The function enable_trace_kprobe() performs slightly differently if the file
parameter is passed in as NULL on non-NULL. Instead of checking file twice,
move the code between the two tests into a static inline helper function to
make the code easier to follow.
Link: http://lkml.kernel.org/r/20180725224728.7b1d5db2@vmware.local.home
Link: http://lkml.kernel.org/r/20180726121152.4dd54330@gandalf.local.home
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions
