powerpc/ftrace: bugfix for test_24bit_addr
authorLiu Ping Fan <kernelfans@gmail.com>
Wed, 26 Feb 2014 02:23:01 +0000 (10:23 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Feb 2014 07:06:25 +0000 (18:06 +1100)
commita95fc58549e8f462e560868a16b1fa97b12d5db6
treeba75bfff830656fef1b4647ab2dc4663320896f1
parentf5295bd8ea8a65dc5eac608b151386314cb978f1
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>
arch/powerpc/kernel/ftrace.c