Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp917166pxj; Fri, 14 May 2021 21:05:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyolPRjyYmORZ3UqMQB1ATYBYPyidxAconT0GpxZG7Igu30iQV0/YyyWGdgAOqgAJlK64gI X-Received: by 2002:a92:c569:: with SMTP id b9mr29885382ilj.117.1621051501768; Fri, 14 May 2021 21:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621051501; cv=none; d=google.com; s=arc-20160816; b=USwOCyTt67kadpbTq423SdPQb/Oy1x96hju4a/ZyCc+iMExzNJXkAwiIQq73zDYv0n IdlNRDxMayhLzDau89ja3bXJeUlmGdX8eUOT/0/scHF2PALTbOgVjA79Sdq1pQaeQMG2 CgjVtaKdoFp2ecgL6NNtwcgszvZ8947tp+5aFjvi+KniZITe+Ey00JJEYcCwNVC2VAjz jf6DHor/+HPYwXzKFDmiTBl8kCZMCW7N2cAUyYAQtw0TOPlDr8zCz4692wJU0WPXY8xW b9MXqK07hmIIwGDeZa8ppqpQNgBybRUChMMp8XrY7rzXK+GhRBHtwh5IDc1GWW84ZCPf xUwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=Yi2xHdp6AYu97kbzUYqBjKgiM48g5hvBdZuhWMT/QKM=; b=hnvp2dbw4nwcFTgN8nbvWhc3KTtm2+nlgGMIuhq+eBoiUKLrn+4uNzNdzqORIYXi1j sUSMB+52MWnFyVikxguBhYc1w4+TRjleFDbbv2LhA3u7Oy+0J3RicMmF+wRPpnN6l2xs 77z+Ak3TP9iXDTGU/06/Ey1wJ/AiqrXW+so09NH6jmFys9NNsuj5SSES79bp81ee8t5o GY82OX56n/nqWTXNKeWa2KnKQpt1TS5KWcwsCvKsI+U8SkY0vPMnGKoxcd8GqyCT6NSw ejFM9D8US+dwqhz7nhS4fgit8TI+Byo0BfUzAqZ19uaTBB+pTH+rtCq3WrULwBJ0lRaM G71A== 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 t15si10786301jal.57.2021.05.14.21.04.48; Fri, 14 May 2021 21:05:01 -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 S234760AbhEOBbP (ORCPT + 99 others); Fri, 14 May 2021 21:31:15 -0400 Received: from mail.loongson.cn ([114.242.206.163]:42846 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229999AbhEOBbO (ORCPT ); Fri, 14 May 2021 21:31:14 -0400 Received: from [10.130.0.135] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxr+4PJJ9giqYWAA--.17524S3; Sat, 15 May 2021 09:29:51 +0800 (CST) Subject: Re: [PATCH v2] samples/kprobes: Fix typo in handler_post() To: Joe Perches , Jonathan Corbet , Masami Hiramatsu , Marc Koderer , Mauro Carvalho Chehab , Christian Brauner , Martin Schwidefsky , Johannes Thumshirn , Heiko Carstens , Jisheng Zhang References: <1620979810-12779-1-git-send-email-yangtiezhu@loongson.cn> Cc: linux-kernel@vger.kernel.org From: Tiezhu Yang Message-ID: <574a6962-c4c2-9595-16e9-a1e395b83852@loongson.cn> Date: Sat, 15 May 2021 09:29:51 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9Dxr+4PJJ9giqYWAA--.17524S3 X-Coremail-Antispam: 1UD129KBjvJXoW7CFyUGr4kWFy3Zw43Wr17ZFb_yoW8GrW5pF 90y3WYkFZYgr15uFW7Aw40gryIv34DZF4kCrs2k34Yy3ZF9rn5AF4kKw4UJrs7ur9aqF4f Xr10kr98Aa4xCFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUU9lb7Iv0xC_Zr1lb4IE77IF4wAFF20E14v26r4j6ryUM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I 8E87Iv6xkF7I0E14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xv F2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r 4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwACI402YVCY1x02628vn2kIc2xK xwCYjI0SjxkI62AI1cAE67vIY487MxkIecxEwVAFwVWkMxAIw28IcxkI7VAKI48JMxC20s 026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_ JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14 v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xva j40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r 4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU2txhDUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/14/2021 11:26 PM, Joe Perches wrote: > On Fri, 2021-05-14 at 16:10 +0800, 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 >> --- >> >> 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 >> } > Perhaps better would be to use pr_fmt and remove all the > embedded pre/post strings. > > This would change the style of the output through. > > Also fix a defective format in handler_fault ending with > an 'n' that should be '\n' Thank you, it looks better, let me send v3 as you suggested. [...]