Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp909600rwd; Tue, 13 Jun 2023 01:58:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bJNYRecx8BW1gBlbH4ntZrfaOctbMTFIvC5E1A0+VLejXDjtc1J7saYS5rBystiCDTWr3 X-Received: by 2002:a17:903:2301:b0:1b0:36ad:fe13 with SMTP id d1-20020a170903230100b001b036adfe13mr9642144plh.16.1686646708841; Tue, 13 Jun 2023 01:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686646708; cv=none; d=google.com; s=arc-20160816; b=JXL9B3r9g0YkjenI8bhgA6F+GVql2suBCarxNzB2xozuHx+IDtStTDcf4QycUBmzZX xYDQfi+HdBfC78jC66J8CoWojGntefvjMV6CW5ydOYohuU3iJIFrqEA5RmNm3M1N6aHH SwZ9zWiwOb1+vByGau3FIGPjclxpeVksygkMx7r7LyTkGQMZGkiA6A0AW2FLXwczuO9D bhFtEKzE6mHSjAA5JQ2nQoS4TW6f8KJOi5hZ1vg79nWiF77xh+kxeHzhtrpXd3DtAild dmxsuKszIAipF0HgE5xvEdMPPglMkTWwR6Ek0HZI3bU+Kh3vNMDCxIGFt/OuxkYVnkVG C21Q== 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=Ct2cD48sQroMU5F0XxemyRbsmxoeqVxy8ucB3C54e9c=; b=guhfCt7esH3fzLEvbHx9zAYXUpoLixFq5Vusb57JzlkzSv4UI4Xn1+NQdiyoSIaUU4 8U6s1yaLxRBw5XXANunj6quK/0hr2+5UFEaHXVUhvuRLwF39+Y2e22ptq+1n8jJi3vbh vAP0nEous2nk0vhQSJ6OF7rzrCq4wlzxywzygn1Ol6roi2o6n9gt1fSvaD2cIaoIFGlN u+GpLHUG6hoIrKF2ZZfol0QMRuqrsBSN7ZFS8RamHnETkyE7YwII1vm+W9FCg1CMiSmV moIgEG8i1ewpTCFUs/1Ux52v8QQnW+Ji+xEVavf2GAw9BMTt7v6xPS5DvIHQLOzcNuFj VdRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dVQateww; 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 y16-20020a170902b49000b001b02fa876c7si8545392plr.578.2023.06.13.01.58.17; Tue, 13 Jun 2023 01:58:28 -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=dVQateww; 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 S239166AbjFMIVv (ORCPT + 99 others); Tue, 13 Jun 2023 04:21:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241082AbjFMIVs (ORCPT ); Tue, 13 Jun 2023 04:21:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04573128; Tue, 13 Jun 2023 01:21:48 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 7B91C62B41; Tue, 13 Jun 2023 08:21:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA046C433EF; Tue, 13 Jun 2023 08:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686644506; bh=OvLFTlujnYmRs+UiOmoVGndpXhBiBH1WD26me7bcPpY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dVQatewwwGOGeOvRrgjR3jiRVM+VbW/gBL56ydxMN2py/G7MwL8vIdIq3257EobNS 6HMf2eEmpGMuiS8QHp2PgVvpVx2KnFewrogZwN9etq315vl/TUM0lSNHre54ugPOya Ur8FAAABTzxnGDovO79hiJqorymrJcEoiPWDGWAy+eH5xNs3eQlQuD/bK1ylkRAqMn /Crlv22H1x3jJDAiddK+EvqU4OU6d38Xi0Ok4udckOdbWhFkWPckjdexErm0HH5yP4 gE3juNJ4459F1MzJWZ7LvGWO7RGfMUfEvns7K8fL8rXnP9iVujVLOu8m065eVkeHIg YCYO4SPRv+J0w== Date: Tue, 13 Jun 2023 17:21:42 +0900 From: Masami Hiramatsu (Google) To: Ajay Kaher Cc: rostedt@goodmis.org, shuah@kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, chinglinyu@google.com, namit@vmware.com, srivatsa@csail.mit.edu, amakhalov@vmware.com, vsirnapalli@vmware.com, tkundu@vmware.com, er.ajay.kaher@gmail.com Subject: Re: [PATCH v3 10/10] test: ftrace: fix kprobe test for eventfs Message-Id: <20230613172142.5dfb0511b7875790f6d71f50@kernel.org> In-Reply-To: <1685610013-33478-11-git-send-email-akaher@vmware.com> References: <1685610013-33478-1-git-send-email-akaher@vmware.com> <1685610013-33478-11-git-send-email-akaher@vmware.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 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,T_SCC_BODY_TEXT_LINE 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 Thu, 1 Jun 2023 14:30:13 +0530 Ajay Kaher wrote: > kprobe_args_char.tc, kprobe_args_string.tc has validation check > for tracefs_create_dir, for eventfs it should be eventfs_create_dir. > This looks good to me. Acked-by: Masami Hiramatsu (Google) Thanks, > Signed-off-by: Ajay Kaher > Co-developed-by: Steven Rostedt (VMware) > Signed-off-by: Steven Rostedt (VMware) > Tested-by: Ching-lin Yu > --- > .../selftests/ftrace/test.d/kprobe/kprobe_args_char.tc | 4 ++-- > .../selftests/ftrace/test.d/kprobe/kprobe_args_string.tc | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc > index 285b4770e..523cfb645 100644 > --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc > +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc > @@ -34,14 +34,14 @@ mips*) > esac > > : "Test get argument (1)" > -echo "p:testprobe tracefs_create_dir arg1=+0(${ARG1}):char" > kprobe_events > +echo "p:testprobe eventfs_add_dir arg1=+0(${ARG1}):char" > kprobe_events > echo 1 > events/kprobes/testprobe/enable > echo "p:test $FUNCTION_FORK" >> kprobe_events > grep -qe "testprobe.* arg1='t'" trace > > echo 0 > events/kprobes/testprobe/enable > : "Test get argument (2)" > -echo "p:testprobe tracefs_create_dir arg1=+0(${ARG1}):char arg2=+0(${ARG1}):char[4]" > kprobe_events > +echo "p:testprobe eventfs_add_dir arg1=+0(${ARG1}):char arg2=+0(${ARG1}):char[4]" > kprobe_events > echo 1 > events/kprobes/testprobe/enable > echo "p:test $FUNCTION_FORK" >> kprobe_events > grep -qe "testprobe.* arg1='t' arg2={'t','e','s','t'}" trace > diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc > index a4f8e7c53..b9f8c3f8b 100644 > --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc > +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc > @@ -37,14 +37,14 @@ loongarch*) > esac > > : "Test get argument (1)" > -echo "p:testprobe tracefs_create_dir arg1=+0(${ARG1}):string" > kprobe_events > +echo "p:testprobe eventfs_add_dir arg1=+0(${ARG1}):string" > kprobe_events > echo 1 > events/kprobes/testprobe/enable > echo "p:test $FUNCTION_FORK" >> kprobe_events > grep -qe "testprobe.* arg1=\"test\"" trace > > echo 0 > events/kprobes/testprobe/enable > : "Test get argument (2)" > -echo "p:testprobe tracefs_create_dir arg1=+0(${ARG1}):string arg2=+0(${ARG1}):string" > kprobe_events > +echo "p:testprobe eventfs_add_dir arg1=+0(${ARG1}):string arg2=+0(${ARG1}):string" > kprobe_events > echo 1 > events/kprobes/testprobe/enable > echo "p:test $FUNCTION_FORK" >> kprobe_events > grep -qe "testprobe.* arg1=\"test\" arg2=\"test\"" trace > -- > 2.40.0 > -- Masami Hiramatsu (Google)