mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
s390/fgraph: Fix to remove ftrace_test_recursion_trylock()
Fix to remove ftrace_test_recursion_trylock() from ftrace_graph_func() because commitd576aec24d
("fgraph: Get ftrace recursion lock in function_graph_enter") has been moved it to function_graph_enter_regs() already. Reported-by: Jiri Olsa <olsajiri@gmail.com> Closes: https://lore.kernel.org/all/Z5O0shrdgeExZ2kF@krava/ Fixes:d576aec24d
("fgraph: Get ftrace recursion lock in function_graph_enter") Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Tested-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Ihor Solodrai <ihor.solodrai@linux.dev> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Link: https://lore.kernel.org/r/173807817692.1854334.2985776940754607459.stgit@devnote2 Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
parent
2e04247f7c
commit
95a05bf552
|
@ -266,18 +266,13 @@ void ftrace_graph_func(unsigned long ip, unsigned long parent_ip,
|
||||||
struct ftrace_ops *op, struct ftrace_regs *fregs)
|
struct ftrace_ops *op, struct ftrace_regs *fregs)
|
||||||
{
|
{
|
||||||
unsigned long *parent = &arch_ftrace_regs(fregs)->regs.gprs[14];
|
unsigned long *parent = &arch_ftrace_regs(fregs)->regs.gprs[14];
|
||||||
int bit;
|
|
||||||
|
|
||||||
if (unlikely(ftrace_graph_is_dead()))
|
if (unlikely(ftrace_graph_is_dead()))
|
||||||
return;
|
return;
|
||||||
if (unlikely(atomic_read(¤t->tracing_graph_pause)))
|
if (unlikely(atomic_read(¤t->tracing_graph_pause)))
|
||||||
return;
|
return;
|
||||||
bit = ftrace_test_recursion_trylock(ip, *parent);
|
|
||||||
if (bit < 0)
|
|
||||||
return;
|
|
||||||
if (!function_graph_enter_regs(*parent, ip, 0, parent, fregs))
|
if (!function_graph_enter_regs(*parent, ip, 0, parent, fregs))
|
||||||
*parent = (unsigned long)&return_to_handler;
|
*parent = (unsigned long)&return_to_handler;
|
||||||
ftrace_test_recursion_unlock(bit);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
|
#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user