Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/ftrace: bugfix for test_24bit_addr

The branch target should be the func addr, not the addr of func_descr_t.
So using ppc_function_entry() to generate the right target addr.

Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Liu Ping Fan and committed by
Benjamin Herrenschmidt
a95fc585 f5295bd8

+1
+1
arch/powerpc/kernel/ftrace.c
··· 74 74 */ 75 75 static int test_24bit_addr(unsigned long ip, unsigned long addr) 76 76 { 77 + addr = ppc_function_entry((void *)addr); 77 78 78 79 /* use the create_branch to verify that this offset can be branched */ 79 80 return create_branch((unsigned int *)ip, addr, 0);