ftrace.c (498495dba268b20e8eadd7fe93c140c68b6cc9d2) | ftrace.c (d983c89cc96a87db0c00821e81aa3d8296c12225) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Dynamic function tracer architecture backend. 4 * 5 * Copyright IBM Corp. 2009,2014 6 * 7 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>, 8 * Martin Schwidefsky <schwidefsky@de.ibm.com> --- 47 unchanged lines hidden (view full) --- 56 * like this: 57 * > brasl %r0,ftrace_caller # offset 0 58 */ 59 60unsigned long ftrace_plt; 61 62static inline void ftrace_generate_orig_insn(struct ftrace_insn *insn) 63{ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Dynamic function tracer architecture backend. 4 * 5 * Copyright IBM Corp. 2009,2014 6 * 7 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>, 8 * Martin Schwidefsky <schwidefsky@de.ibm.com> --- 47 unchanged lines hidden (view full) --- 56 * like this: 57 * > brasl %r0,ftrace_caller # offset 0 58 */ 59 60unsigned long ftrace_plt; 61 62static inline void ftrace_generate_orig_insn(struct ftrace_insn *insn) 63{ |
64#ifdef CC_USING_HOTPATCH | 64#if defined(CC_USING_HOTPATCH) || defined(CC_USING_NOP_MCOUNT) |
65 /* brcl 0,0 */ 66 insn->opc = 0xc004; 67 insn->disp = 0; 68#else 69 /* stg r14,8(r15) */ 70 insn->opc = 0xe3e0; 71 insn->disp = 0xf0080024; 72#endif --- 179 unchanged lines hidden --- | 65 /* brcl 0,0 */ 66 insn->opc = 0xc004; 67 insn->disp = 0; 68#else 69 /* stg r14,8(r15) */ 70 insn->opc = 0xe3e0; 71 insn->disp = 0xf0080024; 72#endif --- 179 unchanged lines hidden --- |