Ilya Leoshkevich
67ccddf866
ftrace: Introduce ftrace_need_init_nop()
...
Implementing live patching on s390 requires each function's prologue to
contain a very special kind of nop, which gcc and clang don't generate.
However, the current code assumes that if CC_USING_NOP_MCOUNT is
defined, then whatever the compiler generates is good enough.
Move the CC_USING_NOP_MCOUNT check into the new ftrace_need_init_nop()
macro, that the architectures can override.
An alternative solution is to disable using -mnop-mcount in the
Makefile, however, this makes the build logic (even) more complicated
and forces the arch-specific code to deal with the useless __fentry__
symbol.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com >
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
Link: https://lore.kernel.org/r/20210728212546.128248-2-iii@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com >
2021-08-03 14:31:40 +02:00
..
2021-07-05 11:48:14 -07:00
2021-07-06 20:14:42 -04:00
2021-07-21 12:37:49 -07:00
2021-07-03 04:50:56 -04:00
2021-07-05 11:21:51 -07:00
2021-07-05 14:16:22 -07:00
2021-07-01 16:57:14 -07:00
2021-07-10 09:22:44 -07:00
2021-07-07 11:12:01 -07:00
2021-07-10 09:22:44 -07:00
2021-07-05 13:42:16 -07:00
2021-07-09 09:43:57 -07:00
2021-07-05 14:16:22 -07:00
2021-07-07 13:30:01 -07:00
2021-07-01 11:06:04 -07:00
2021-07-09 12:05:33 -07:00
2021-07-24 12:57:06 -07:00
2021-07-08 11:48:20 -07:00
2021-07-09 12:08:27 +02:00
2021-07-08 11:48:22 -07:00
2021-07-02 15:14:36 -07:00
2021-07-08 11:48:21 -07:00
2021-07-01 11:06:06 -07:00
2021-07-02 12:08:10 -07:00
2021-07-01 11:06:06 -07:00
2021-07-01 11:06:06 -07:00
2021-07-05 12:44:23 +02:00
2021-07-08 11:48:20 -07:00
2021-07-08 11:48:22 -07:00
2021-07-08 11:48:20 -07:00
2021-07-05 14:16:22 -07:00
2021-07-01 13:08:18 -07:00
2021-07-14 09:19:06 -07:00
2021-07-05 13:42:16 -07:00
2021-08-03 14:31:40 +02:00
2021-07-23 17:43:28 -07:00
2021-07-08 11:48:21 -07:00
2021-07-08 11:48:21 -07:00
2021-07-05 14:01:53 -07:00
2021-07-08 08:37:31 -04:00
2021-07-08 11:48:22 -07:00
2021-07-15 10:13:49 -07:00
2021-07-02 12:08:10 -07:00
2021-07-02 12:54:34 -07:00
2021-07-01 11:06:05 -07:00
2021-07-08 11:48:21 -07:00
2021-07-08 11:48:20 -07:00
2021-07-11 10:02:33 -07:00
2021-07-23 17:43:28 -07:00
2021-07-01 17:17:24 -07:00
2021-07-12 11:30:56 -07:00
2021-07-02 12:08:10 -07:00
2021-07-12 11:30:56 -07:00
2021-07-08 11:48:21 -07:00
2021-07-08 11:48:22 -07:00
2021-07-01 11:06:05 -07:00
2021-07-08 14:03:26 -04:00
2021-07-08 11:48:20 -07:00
2021-07-05 13:42:16 -07:00
2021-07-02 12:08:10 -07:00
2021-07-01 11:06:04 -07:00
2021-07-01 11:06:04 -07:00
2021-07-06 10:37:46 -05:00
2021-07-06 10:37:46 -05:00
2021-07-06 10:37:46 -05:00
2021-07-06 10:37:46 -05:00
2021-07-08 12:06:20 -07:00
2021-07-08 11:48:21 -07:00
2021-07-08 11:48:20 -07:00
2021-07-21 11:28:09 +01:00
2021-07-01 13:08:18 -07:00
2021-07-15 10:13:49 -07:00
2021-07-08 11:48:20 -07:00
2021-07-13 11:39:42 +01:00
2021-07-13 11:39:48 +01:00
2021-07-08 11:48:21 -07:00
2021-07-01 11:06:05 -07:00
2021-07-08 11:48:20 -07:00
2021-07-02 12:08:10 -07:00
2021-07-08 11:48:21 -07:00
2021-07-01 11:06:06 -07:00
2021-07-05 10:16:17 -07:00
2021-07-01 11:06:05 -07:00
2021-07-01 11:06:05 -07:00
2021-07-08 11:48:21 -07:00
2021-07-01 11:06:04 -07:00
2021-07-08 07:49:01 -04:00
2021-07-08 07:49:01 -04:00
2021-07-08 11:48:21 -07:00