Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4319708pxy; Tue, 27 Apr 2021 02:04:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxloQcLAFOz1/P8AdMxq7QUpmeKG611pPknZBLFxGXYgAsShg0QR7WEPHh/rSDn+Iu56+tr X-Received: by 2002:a62:ed0b:0:b029:25c:9ea2:abea with SMTP id u11-20020a62ed0b0000b029025c9ea2abeamr22478368pfh.46.1619514248898; Tue, 27 Apr 2021 02:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619514248; cv=none; d=google.com; s=arc-20160816; b=fbP4sNWWEY1Ef6ZOhk9M3w29Iu0NF+myhx3dNRusyS4wj/56OGpLDSH/kLzYcC6UUl yMFA6zFPCehQrpdeE/dpBh1KQ+8B3MxDvuN6PnuTFCVobYxUsUeCkGQQBL0Qyexp1UTT MDzGmfNtCXSRsvRbWTqjir5zcVFh3h2EbcBzawPm/sFeeY+9rTVbeluNPT/veU6WlGjQ hSD2MQ8Ke2Cr1Hn++T50UMpxCExFVmNoXNQNsmeBgw9vVLTRdlUU5kuB4s5Ayopi6MXO i6uplXb+fzZnFZodasdIFFfCg/+hT0Yr442Y7JeVvmo9eCwTne6zNHsvL3mTIzsHcAJd FgXw== 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=MO6etmrAqaqKmKROwV8bAcmOflCyo0kvCuZSyqTdBW0=; b=NhinKNrq2r0VUqe2Os1fn25jJ2yOYSrvwEtoPAxhXibgJZscrSP1SVSNvi8t0iEtyO bAaCLjJzL6On5hKzoTpE5pw2fW/zS/VKOgQLJR4wNMro+th8wHoGSyMcYnNxXJ9k5MPi VrSWvK40lPdy2HzwwnP2bEmmZBtezBLH6QEvm43OUH5AvMN2k+s3ai62qf0Cl3Moo12R BBDpHKsr6/hzsZylSA5TdTFETaOPbZqU7hCuavuIf4HNFqHLFzjYhhJn8VOjjBx8IjPl pbsvlFceUyRJ1HiOlpvzjtJF0U2GsVBL03VTQ6MMymwYsnX+aA/1Fo8AJY1wtmBJAoOL xb/Q== 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 r3si20716435pgp.370.2021.04.27.02.03.53; Tue, 27 Apr 2021 02:04:08 -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 S235033AbhD0JEA (ORCPT + 99 others); Tue, 27 Apr 2021 05:04:00 -0400 Received: from mail.loongson.cn ([114.242.206.163]:39662 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229629AbhD0JD6 (ORCPT ); Tue, 27 Apr 2021 05:03:58 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxP+9Q04dgSm8OAA--.7255S2; Tue, 27 Apr 2021 17:03:12 +0800 (CST) From: Tiezhu Yang To: Jonathan Corbet Cc: linux-kernel@vger.kernel.org Subject: [PATCH] samples/kprobes: Fix typo in handler_post() Date: Tue, 27 Apr 2021 17:03:11 +0800 Message-Id: <1619514191-14551-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9DxP+9Q04dgSm8OAA--.7255S2 X-Coremail-Antispam: 1UD129KBjvdXoWrKryfuF1DAFyDGw4Duw1kGrg_yoWfArc_A3 srtr92grW8Jr98uF12krsYqFsaqw1xWr4xG392qr9FvFnxJry7C3ykKr4DGa1fX3s8KFyU Jr4DX347ZF4xWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb7AYjsxI4VWxJwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r4j6F4UMc vjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY02Avz4vE14v_GFWl42xK82IY c2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s 026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1Y6r17MIIYrxkI7VAKI48JMIIF 0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0x vE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2 jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8EAp5UUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-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 --- 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 331dcf1..c421fba 100644 --- a/samples/kprobes/kprobe_example.c +++ b/samples/kprobes/kprobe_example.c @@ -81,7 +81,7 @@ static void __kprobes handler_post(struct kprobe *p, struct pt_regs *regs, p->symbol_name, p->addr, (long)regs->ARM_cpsr); #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