Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp274167pxj; Fri, 14 May 2021 03:10:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsyWGfzuyierNMlvJ9BR1CWnG6LST9e22kbTWdwP4D+MnAs8xd/BSiCuPJuV/P8wTS9syL X-Received: by 2002:a05:6e02:e10:: with SMTP id a16mr4385965ilk.56.1620987037822; Fri, 14 May 2021 03:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620987037; cv=none; d=google.com; s=arc-20160816; b=gIQWAhOabOnoxvqqUdW0GfF+qzgdozi49yptqC1RBQz8UqbgX15eaUXO1puYccKjAS UULLgnZfGeU6YG00BkwYgRpohvL4WE09HcmAykcjoSfj+m4fAKZNEP9Jo4xq/f3ryIVX q/5gyMYhMtP5celc7/0wf7DNlLMOwZbu8RN9g8w9Tujan0lGtDyy8cYHZURN7/Zs4BcS s57qux146KABPSuzCFp109UnwZPn2v6pL+fTNYwvlCvU1RVK4EQ+uSN/MUePJnNYxJn5 2LPqB69yxfhkYw23PgzanHY+xMo7g9XvwVaodNurqQwQ0FQYXFwAEj1GyOk7dQwmEyQR a9Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=a3hQVcYphBbEuMximCaiIp8Z2gtmNQFHdY/1/K7dS7U=; b=AWU3D4PZu1qfCUibcQ70i5kcruqjJjY9s1mTakVmFlOTpy65EOzkrWnA44i6J0PkVB gmZQ52OFtbfy8werdjLuGO7y8Wggta4tzw37HJFW1gd6hy5aTolT/laAp2A53eebFDSa ttS7Lp3Pcn9tTcHlFNYIh/YsiNAnCs2FRkilP3pdCM/Ha6PyXskvOUevJFBf0oEvX03L ZlvAQcAx30wSPMhE4bpGpM8xcI8sVEa7Hn8YM7RtTkeYxs9z7nHrIu1dWkjnYDkMNc7L cQnIfMFUYiDQy1Xt47MC3vWBIFsQHpDbNtOuHkGe0pGchnqUtV2SyPeEw47HdyTIOyKx VMIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si6803695jat.60.2021.05.14.03.10.25; Fri, 14 May 2021 03:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233422AbhENIL7 (ORCPT + 99 others); Fri, 14 May 2021 04:11:59 -0400 Received: from mail.loongson.cn ([114.242.206.163]:42600 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229654AbhENIL6 (ORCPT ); Fri, 14 May 2021 04:11:58 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Axfch8MJ5gSVQWAA--.937S2; Fri, 14 May 2021 16:10:37 +0800 (CST) From: Tiezhu Yang To: Jonathan Corbet , Masami Hiramatsu , Marc Koderer , Mauro Carvalho Chehab , Christian Brauner , Martin Schwidefsky , Johannes Thumshirn , Heiko Carstens , Jisheng Zhang Cc: linux-kernel@vger.kernel.org Subject: [PATCH v2] samples/kprobes: Fix typo in handler_post() Date: Fri, 14 May 2021 16:10:10 +0800 Message-Id: <1620979810-12779-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9Axfch8MJ5gSVQWAA--.937S2 X-Coremail-Antispam: 1UD129KBjvdXoWrKryDZF1fWFy5Ww13ArWfGrg_yoWfZFX_A3 srtr92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-kernel@vger.kernel.org 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 --- 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