linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] samples/kprobes: Fix typo in handler_post()
@ 2021-05-14  8:10 Tiezhu Yang
  2021-05-14  9:28 ` Koderer, Marc
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tiezhu Yang @ 2021-05-14  8:10 UTC (permalink / raw)
  To: Jonathan Corbet, Masami Hiramatsu, Marc Koderer,
	Mauro Carvalho Chehab, Christian Brauner, Martin Schwidefsky,
	Johannes Thumshirn, Heiko Carstens, Jisheng Zhang
  Cc: linux-kernel

It should use post_handler instead of pre_handler in handler_post().

Fixes: e16c5dd5157e ("samples/kprobes: Add s390 case in kprobe example module")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---

v2: rebase on the latest mainline kernel

 samples/kprobes/kprobe_example.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/kprobes/kprobe_example.c b/samples/kprobes/kprobe_example.c
index c495664..602db3f 100644
--- a/samples/kprobes/kprobe_example.c
+++ b/samples/kprobes/kprobe_example.c
@@ -89,7 +89,7 @@ static void __kprobes handler_post(struct kprobe *p, struct pt_regs *regs,
 		p->symbol_name, p->addr, regs->status);
 #endif
 #ifdef CONFIG_S390
-	pr_info("<%s> pre_handler: p->addr, 0x%p, flags = 0x%lx\n",
+	pr_info("<%s> post_handler: p->addr, 0x%p, flags = 0x%lx\n",
 		p->symbol_name, p->addr, regs->flags);
 #endif
 }
-- 
2.1.0


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

end of thread, other threads:[~2021-05-15 13:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14  8:10 [PATCH v2] samples/kprobes: Fix typo in handler_post() Tiezhu Yang
2021-05-14  9:28 ` Koderer, Marc
2021-05-14 13:20 ` Masami Hiramatsu
2021-05-14 15:26 ` Joe Perches
2021-05-15  1:29   ` Tiezhu Yang

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).