forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 958e46acc8e900e8569dd467c1af9b8d2d019394
kernel/arch/powerpc/kernel/trace/ftrace_64.S
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Split from entry_64.S
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106 #include <linux/magic.h>
....@@ -14,6 +10,18 @@
1410 #include <asm/ppc-opcode.h>
1511 #include <asm/export.h>
1612
13
+.pushsection ".tramp.ftrace.text","aw",@progbits;
14
+.globl ftrace_tramp_text
15
+ftrace_tramp_text:
16
+ .space 64
17
+.popsection
18
+
19
+.pushsection ".tramp.ftrace.init","aw",@progbits;
20
+.globl ftrace_tramp_init
21
+ftrace_tramp_init:
22
+ .space 64
23
+.popsection
24
+
1725 _GLOBAL(mcount)
1826 _GLOBAL(_mcount)
1927 EXPORT_SYMBOL(_mcount)