Skip to content

Commit b8a1c9f

Browse files
committed
Merge tag 's390-6.14-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Alexander Gordeev: - Architecutre-specific ftrace recursion trylock tests were removed in favour of the generic function_graph_enter(), but s390 got missed. Remove this test for s390 as well. - Add ftrace_get_symaddr() for s390, which returns the symbol address from ftrace 'ip' parameter * tag 's390-6.14-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/tracing: Define ftrace_get_symaddr() for s390 s390/fgraph: Fix to remove ftrace_test_recursion_trylock()
2 parents b731bc5 + b999589 commit b8a1c9f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

arch/s390/include/asm/ftrace.h

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr)
5151
{
5252
return addr;
5353
}
54+
#define ftrace_get_symaddr(fentry_ip) ((unsigned long)(fentry_ip))
5455

5556
#include <linux/ftrace_regs.h>
5657

arch/s390/kernel/ftrace.c

-5
Original file line numberDiff line numberDiff line change
@@ -266,18 +266,13 @@ void ftrace_graph_func(unsigned long ip, unsigned long parent_ip,
266266
struct ftrace_ops *op, struct ftrace_regs *fregs)
267267
{
268268
unsigned long *parent = &arch_ftrace_regs(fregs)->regs.gprs[14];
269-
int bit;
270269

271270
if (unlikely(ftrace_graph_is_dead()))
272271
return;
273272
if (unlikely(atomic_read(&current->tracing_graph_pause)))
274273
return;
275-
bit = ftrace_test_recursion_trylock(ip, *parent);
276-
if (bit < 0)
277-
return;
278274
if (!function_graph_enter_regs(*parent, ip, 0, parent, fregs))
279275
*parent = (unsigned long)&return_to_handler;
280-
ftrace_test_recursion_unlock(bit);
281276
}
282277

283278
#endif /* CONFIG_FUNCTION_GRAPH_TRACER */

0 commit comments

Comments
 (0)