Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp630663imi; Thu, 21 Jul 2022 07:59:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tIL5E+M91xudziKKyN6zsY0QOPZKDh1g/xsfukwhIT09luUSsz8bInwTcxZ9uPxygscJHL X-Received: by 2002:a17:902:8605:b0:16b:e755:3c6e with SMTP id f5-20020a170902860500b0016be7553c6emr44109570plo.42.1658415548791; Thu, 21 Jul 2022 07:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658415548; cv=none; d=google.com; s=arc-20160816; b=w1CMwxaEUgJaoeTnY94h7kP7RkYDdmFg5z7f3/gaYPtGGAcT8ElNqazm+hc5zb+uKx VdpvsIPeenPymxsdcQMODtg71CG8zzyUQqsxjY9bbJDZ6s72dh1vZuetbqDRZHMcPE8e bN/IEagkMLSYQ/y/qrX2iBjtrvSFT3komahGbnYefEGfaYehbdsrunKeSod/t1Utpz6/ ke6ilmKJybfqGL2H0JAwfvi+FF9EkWJpj2xBgwEIx7CGhaLK+CFxCdTjezdUgYaOKvqP 03Q5Sfq8TiYB+NhCJ9SkrYaNY8FSnLcku8jTnJr7UXeFpvLLjgCyKZQu2Mk5g7y5KGlS +mfA== 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=AKqsnZWdVxHI4zLXUc0j1bJU79OTlqpjW2eDinEd/Q8=; b=F27TLjMRIPY8z+Icyf0UDhXzB7DCP0MRYtFxWy+45k831E3OqtUcpC3nh2vdFDrx0p 1H9VH2uVlV1WO20k9g8c1uky/dAZ34XfNLQtczTnd4x79y10hTOKYjzxhBbtQTR2wnWt IPYDjzZU++33nMa+CnMRCmay86RpJ6AB2Eod/J10vIlVNnWYg9C3IhnNGRiaEOopdN/c 03skF1Jv7g4g3eMKPRU0UZwfH42GlygMdsPWLVhChOd5wWZm5nc+O2X7wsckU2satTV1 JI/CZo6mXQFUvkoNWMBAxcZ05OBoacw+uPMnWmSr6zMOXI4Y3UY+bvAM091KnHce9hMf 2kNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tJuFU0CP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot8-20020a17090b3b4800b001e312672c02si2580492pjb.30.2022.07.21.07.58.53; Thu, 21 Jul 2022 07:59:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tJuFU0CP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232335AbiGUOzt (ORCPT + 99 others); Thu, 21 Jul 2022 10:55:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbiGUOzr (ORCPT ); Thu, 21 Jul 2022 10:55:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 051A913E3B for ; Thu, 21 Jul 2022 07:55:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B5252B82472 for ; Thu, 21 Jul 2022 14:55:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F07CDC3411E; Thu, 21 Jul 2022 14:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658415344; bh=PzmXzO0OGI8+AukQJZUMy/PSmU3hi9+I1oGnrrJOq5c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tJuFU0CPMVa9GI4+tbmHMFcn1ZCvjrj45fYFY8+cS5dDT1Vqa8FBT2Qmj5/qogfAx wV74R3bSi+jqkP1d4q5a15us1/55k6gLuEySxyacgKwPzb4dkJNh1nc2M9NhQsmMAe xYFdkM/bSimMkO2Tep+lLnxKJhy8n9T1gbpn1qsFAQajLln1pL65WOYHjL2dQbbS3j f16bGKVQQUtr+ghG+ZS/59xV7hmQ6W5KlDb1VgwarjiCDVncqX6BHtu02wYIsBzgld Q/TQqnjfBguSUpWu/0BisWL6mcLticzyz6F3UrvEeDOvRO9vKbVcJTThte+5jsjJA2 lRAuJo6lXeXrg== Date: Thu, 21 Jul 2022 23:55:40 +0900 From: Masami Hiramatsu (Google) To: Linyu Yuan Cc: Steven Rostedt , LKML , Ingo Molnar , Andrew Morton Subject: Re: [PATCH] selftests/kprobe: Update test for no event name syntax error Message-Id: <20220721235540.a9e068f9dbb442aa44c117c9@kernel.org> In-Reply-To: <1c530e9b-3184-0113-d8ef-47548d7ab173@quicinc.com> References: <20220718144007.78c5b50f9b123fb80a920054@kernel.org> <165812790993.1377963.9762767354560397298.stgit@devnote2> <1c530e9b-3184-0113-d8ef-47548d7ab173@quicinc.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Jul 2022 17:36:43 +0800 Linyu Yuan wrote: > hi Masami, > > On 7/18/2022 3:05 PM, Masami Hiramatsu (Google) wrote: > > From: Masami Hiramatsu (Google) > > > > The commit 208003254c32 ("selftests/kprobe: Do not test for GRP/ > > without event failures") removed a syntax which is no more cause > > a syntax error (NO_EVENT_NAME error with GRP/). > > However, there are another case (NO_EVENT_NAME error without GRP/) > > which causes a same error. This adds a test for that case. > > > > Signed-off-by: Masami Hiramatsu (Google) > > --- > > .../ftrace/test.d/kprobe/kprobe_syntax_errors.tc | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc > > index 7c02509c71d0..9e85d3019ff0 100644 > > --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc > > +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc > > @@ -21,6 +21,7 @@ check_error 'p:^/bar vfs_read' # NO_GROUP_NAME > > check_error 'p:^12345678901234567890123456789012345678901234567890123456789012345/bar vfs_read' # GROUP_TOO_LONG > > > > check_error 'p:^foo.1/bar vfs_read' # BAD_GROUP_NAME > > +check_error 'p:^ vfs_read' # NO_EVENT_NAME > > i think you fix the issue which exist from start, right ? Yes, this is not a new bug but the error case which still exists. > > is there better comment than NO_EVENT_NAMEĀ  ? These comments are corresponding to the error name, so that we can find the logging code easily. (Not for users) Thank you, > > > check_error 'p:foo/^12345678901234567890123456789012345678901234567890123456789012345 vfs_read' # EVENT_TOO_LONG > > check_error 'p:foo/^bar.1 vfs_read' # BAD_EVENT_NAME > > > > -- Masami Hiramatsu (Google)