aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <[email protected]>2022-11-22 18:09:05 -0500
committerSteven Rostedt (Google) <[email protected]>2022-11-23 19:08:31 -0500
commitbd604f3db49c5b21171abea0414a2020dcbf2646 (patch)
treea084e885e16e1641a83588f6750ad4e73df54543 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent96e6122cb79616c622ae0d025eb9f981120b568d (diff)
ftrace: Avoid needless updates of the ftrace function call
Song Shuai reported: The list func (ftrace_ops_list_func) will be patched first before the transition between old and new calls are set, which fixed the race described in this commit `59338f75`. While ftrace_trace_function changes from the list func to a ftrace_ops func, like unregistering the klp_ops to leave the only global_ops in ftrace_ops_list, the ftrace_[regs]_call will be replaced with the list func although it already exists. So there should be a condition to avoid this. And suggested using another variable to keep track of what the ftrace function is set to. But this could be simplified by using a helper function that does the same with a static variable. Link: https://lore.kernel.org/lkml/[email protected]/ Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Reported-by: Song Shuai <[email protected]> Reviewed-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions