Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp734605pxj; Fri, 14 May 2021 14:35:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSYPAzrc96HiK4TG/dSXcokghBVW6bdPM9ft02VzOvFu3pqihogQkC1IFzuM4vo8czbKd9 X-Received: by 2002:a17:906:f6cc:: with SMTP id jo12mr44173139ejb.390.1621028143831; Fri, 14 May 2021 14:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621028143; cv=none; d=google.com; s=arc-20160816; b=OfYpBrMCnssaYUI/4XSecWdKXNUi5uVDYgXlMRHMzLv92+PjjM9WtlHlWml18BlsSf VDdPRe/a1nvX9PiDUpH6lcFi24Jv+Qu2amh3m5PCFgBq9wtXeMOb/hhQXEYQGYL4N6lq hwMqTL2ywaB/gAQID3NramL/Ijx1QGWHHiV5g7T+z2ZFrG2zSv64yfZci+0OmmZ3qOMh C7v30Zxzj2ZbLFCQneXi6yzMuG8FDxeasPFK84UYLqU48bacRLXKh+h7VnznRVgwQKwu 5p0t6BhSW6fvYuJz2xfRmFF1mui0z3ELDVzCTPjdZTvwlk2+Sw6RdV1QttAKov/QjEoj ITjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=n8s864BK25TyOizMrCnbLjxynfNXlN3OE+kvbEs8uDg=; b=ZkwgANV9v9OFDi97o37tGJM9NrDrqGV7+jSzhnLxLfAQqAmEa/dqY2VXbB5xjX66Is udBlfqr7hM3/XzVEspkayTc9TU7NJb04b690luNyOJUG2QGieLnffAyn8pyAX1+Wrla1 TResTYZGsWzM1nkeARjZx4dl4aX8EdGiihJnogUDpLMM5blkC2UAGVwLO93RZn8HvKqK hO4crqYUazw6tNIKyUfsk0ErQN2VgUxfjNNubIiAPbCQeWPXvFvBK/phvqxSa9SRKAH+ 7WAcC/Twdp93KZUn1qIkiUFKJs0yH93H/kMtJ2pS7Tn66/gAkMiM6gz4ejOg6pG/qhAK gdWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jNMsbpAl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si7320639ejq.727.2021.05.14.14.35.20; Fri, 14 May 2021 14:35:43 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jNMsbpAl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233758AbhENNVW (ORCPT + 99 others); Fri, 14 May 2021 09:21:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:52500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhENNVV (ORCPT ); Fri, 14 May 2021 09:21:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4C8061451; Fri, 14 May 2021 13:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620998410; bh=vmjZo5FsCOZVRQUnwKI9G8xEtugt5u8YaX+YGYflkls=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jNMsbpAlj8goNw+JaeL09CUCLqsHDlRhYHacbNpKYUh891WEyRj31HUQlhGIYaQNO sj+IV9dHjH7YMQ3289I8i9FlqopA6muGZvoF1Y2riXJkH5TCZmjEIqkbY5hfU8Jzxn ba0mDgS3bffwhZcJnuvJIx1UkYUovTI2b/84Lmy4cRjoQkUPrRP/Mzdnql1QmE34IV YgVAfjme+pO/GTnFG/EI4jadvWsccEC67SMAxGCwtUJRzob85B/WIbnNZfISGswQ/q YD/oK8LGpiDGIocG9Sx9yPBpZQeAXj50/2/aHWmgA/2Es0wffjT15z8sAgCXTiTMyQ ybFjhzphVmLQw== Date: Fri, 14 May 2021 22:20:04 +0900 From: Masami Hiramatsu To: Tiezhu Yang Cc: Jonathan Corbet , Marc Koderer , Mauro Carvalho Chehab , Christian Brauner , Martin Schwidefsky , Johannes Thumshirn , Heiko Carstens , Jisheng Zhang , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] samples/kprobes: Fix typo in handler_post() Message-Id: <20210514222004.54f4c2b12099b569a872a2ee@kernel.org> In-Reply-To: <1620979810-12779-1-git-send-email-yangtiezhu@loongson.cn> References: <1620979810-12779-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 May 2021 16:10:10 +0800 Tiezhu Yang wrote: > It should use post_handler instead of pre_handler in handler_post(). Looks good to me. Acked-by: Masami Hiramatsu Thanks! > > 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 > -- Masami Hiramatsu