Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1483574pxj; Sat, 15 May 2021 16:51:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcygNUOH1ZjeoMebvOn2g9NsEP49B1s5yiMFiGo264XZmlSnw++ybeC9IDyMVWmK5n+LP4 X-Received: by 2002:a5d:8e08:: with SMTP id e8mr40141461iod.47.1621122706686; Sat, 15 May 2021 16:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621122706; cv=none; d=google.com; s=arc-20160816; b=XC2OAHEVs9TaeWB9XukeI8BbtK9cYnhoP3u9+UK3FRHvZEDc+fHrDLo/r3gBJsi/0R O0poctGEStkonn0ILGI7EqeEFDvX25C98l1pswgPDs9wWuldXiH7t4vlAfGbnD3f+cDj Wv55W+pJLNjER80V/9OoJayjJTjPEiBNMc4YOtfFRMeYykb4nRCpJwg+sAcvw4XOMZDX IRDFfJo7bMJIpejH9XDCcDRWMaDQFekLiyGXAiKwt8rt9l5CkCqfDaBescaM6y+Bh0dU lM+UkOj3yUVMSNbVQ2J+b0Ae6b82ljsx43YpQKdD5e7hgQxwk0Ejvmw5K2yG1VO3NXyJ 4NDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=vD8nMzgf2oK5iZQu7HeKehcEi+U8WD19Z+LpJQROVH8=; b=pjrqXuQoKxBcvcsJihg0xY1XPArvSxR+gy4ECu+qsS61CDUG2Z2kwzxscp01ihrwSM fOZBfwH+nR5Lrc+Yy9WY+XGkRSMH3CKYRISmpnwtc8VdxNNPA4elkbHZhT5tPdYkXL6P 5uOKIcAyDPIQ+5kvh0rhz/tPg+jjlbqBCsBfqG5SMXnx697UmCPxNAcpLFbzccb2Q1vx GogMfz/UuIyKZWvUYfhh00b0WmpE30x9jFeMW54kjRCDR8svXHAA6c+MBanmJhFdi0AH 3YLYAIG9EJ7hHKcV6dbLq3NneYbVy+7CIQhxsgIA1GxNMeyhCPolt1uWZJrdr/raAJiG WChw== 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 x20si11922887jao.3.2021.05.15.16.51.04; Sat, 15 May 2021 16:51:46 -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 S230410AbhEON1h convert rfc822-to-8bit (ORCPT + 99 others); Sat, 15 May 2021 09:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbhEON1a (ORCPT ); Sat, 15 May 2021 09:27:30 -0400 X-Greylist: delayed 86 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 15 May 2021 06:26:16 PDT Received: from bounceout06.ispgateway.de (bounceout06.ispgateway.de [IPv6:2a00:1158:400:1::f6]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6EDA5C061573 for ; Sat, 15 May 2021 06:26:16 -0700 (PDT) Received: from [80.67.18.14] (helo=smtprelay02.ispgateway.de) by bounceout06.ispgateway.de with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lhuHf-0006gU-LF; Sat, 15 May 2021 15:24:47 +0200 Received: from [193.16.224.13] (helo=smtpclient.apple) by smtprelay02.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lhU6k-0000Op-2I; Fri, 14 May 2021 11:27:46 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: [PATCH v2] samples/kprobes: Fix typo in handler_post() From: "Koderer, Marc" In-Reply-To: <1620979810-12779-1-git-send-email-yangtiezhu@loongson.cn> Date: Fri, 14 May 2021 11:28:07 +0200 Cc: Jonathan Corbet , Masami Hiramatsu , Mauro Carvalho Chehab , Christian Brauner , Martin Schwidefsky , Johannes Thumshirn , Heiko Carstens , Jisheng Zhang , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: References: <1620979810-12779-1-git-send-email-yangtiezhu@loongson.cn> To: Tiezhu Yang X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Df-Sender: bWFyY0Brb2RlcmVyLmNvbQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 14. May 2021, at 10:10, Tiezhu Yang wrote: > > 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 LGTM. Acked-by: Marc Koderer Thanks. > --- > > 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 >