linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] riscv: ftrace: Fix the comments about the number of ftrace instruction
@ 2022-04-26  1:57 Li Huafei
  2022-04-26  1:57 ` [PATCH 2/2] riscv: kprobe: Allow coexistence of ftrace and kprobe Li Huafei
  2022-04-26  6:22 ` [PATCH 1/2] riscv: ftrace: Fix the comments about the number of ftrace instruction Guo Ren
  0 siblings, 2 replies; 9+ messages in thread
From: Li Huafei @ 2022-04-26  1:57 UTC (permalink / raw)
  To: guoren, mhiramat, palmer
  Cc: rostedt, mingo, paul.walmsley, aou, naveen.n.rao,
	anil.s.keshavamurthy, davem, jszhang, peterz, liaochang1, me,
	penberg, lihuafei1, linux-riscv, linux-kernel

When DYNAMIC_FTRACE is enabled, we put four instructions in front of the
function for ftrace use, not five.

Signed-off-by: Li Huafei <lihuafei1@huawei.com>
---
 arch/riscv/kernel/ftrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/ftrace.c b/arch/riscv/kernel/ftrace.c
index 4716f4cdc038..63f457650fa4 100644
--- a/arch/riscv/kernel/ftrace.c
+++ b/arch/riscv/kernel/ftrace.c
@@ -73,7 +73,7 @@ static int __ftrace_modify_call(unsigned long hook_pos, unsigned long target,
 }
 
 /*
- * Put 5 instructions with 16 bytes at the front of function within
+ * Put 4 instructions with 16 bytes at the front of function within
  * patchable function entry nops' area.
  *
  * 0: REG_S  ra, -SZREG(sp)
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-05-09  7:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26  1:57 [PATCH 1/2] riscv: ftrace: Fix the comments about the number of ftrace instruction Li Huafei
2022-04-26  1:57 ` [PATCH 2/2] riscv: kprobe: Allow coexistence of ftrace and kprobe Li Huafei
2022-04-26  8:01   ` Guo Ren
2022-04-26  8:16     ` Guo Ren
2022-04-29  9:15       ` Li Huafei
2022-04-30  7:08         ` Guo Ren
2022-05-09  6:51           ` Li Huafei
2022-04-26  6:22 ` [PATCH 1/2] riscv: ftrace: Fix the comments about the number of ftrace instruction Guo Ren
2022-04-26  8:52   ` Li Huafei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).