Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp430101rwd; Thu, 1 Jun 2023 02:10:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XwRfPNXdXI/WQfSIBfLhngTvHVwwYTOBlv7wZW4R2fb5G4O3n3VePzXk8v4n6okGX0LFV X-Received: by 2002:a92:d581:0:b0:33b:ad59:a8a9 with SMTP id a1-20020a92d581000000b0033bad59a8a9mr4060265iln.9.1685610617648; Thu, 01 Jun 2023 02:10:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685610617; cv=pass; d=google.com; s=arc-20160816; b=Zpk7LzhSkX7pdrvilgJEQ+Y1UiG7pbz2ilbK+ondFkgcbSG3WONUtoSZN8HAMLBhNl ShBCblWCYrnwoWZSXgvijG1Gzs36Rt+r0PlCbzTNG3w96RyB6VBUNxcZLe7GvRGPy1Mh 0VQbBOvp7X47eSEngtoU51yQUzOSOgfhrnCwntAO5gh0vX195vTDiEdoVa3Zn5qlJyLn Tk9xD91RSfhEhkuQFsB+1jrHika4mBFPIE40EjCjW/RcD84y5NhW7sjhQA51Lquhk8lA eOwa17CuGmWouZvhnCdiVYga/bN/7+QCeieqYfoS849sxgNNPOpprq0I+TPxJK5zzvZK VypA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=H9bnRNg1BLztg/RndOvyjdrwv2dOtmc68BkZNs0p/m8=; b=bmYdUSn0sZhq0aJO3Iy96FM6jCEWVQ6DYmcgvmLkxFKBegJs+y1fFhrc6WsJHWBz7o Ki5X6Ey+u25VHgu0iIN9aGvnY/Zhdtqo8OVheJJtf1o6DQUFn5BwJ1vY2LeZn2x0Rf2g oNef1XANCwrnr34XnLpCuofXZ4R87xHpKUc4mQTawsbGAO6OK16bf4iq2QUiWFqxVObW eLAsKUgRJLJyXCr6d2Z0pai9N1nOCPsHuMwdGZnxX9A1SK00B4Fjz9OzK2NzAKoF7Iw1 GePL4nQN3mnczGpl3RViDb6ppVtKcVackMM4pgQUXGw0FTBPV46mPjKsyjx+UaihGT8p 8vZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=ivdUw5iN; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.com); 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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b0052c575f1d8dsi2604534pgb.260.2023.06.01.02.10.03; Thu, 01 Jun 2023 02:10:17 -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=@vmware.com header.s=selector2 header.b=ivdUw5iN; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.com); 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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232483AbjFAJCh (ORCPT + 99 others); Thu, 1 Jun 2023 05:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232540AbjFAJCR (ORCPT ); Thu, 1 Jun 2023 05:02:17 -0400 Received: from DM4PR02CU002.outbound.protection.outlook.com (mail-centralusazon11013010.outbound.protection.outlook.com [52.101.64.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A69BF192; Thu, 1 Jun 2023 02:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BW9rSuoVZzQ56h1txT6VWGrd6OW89vz4ypTBxmWqA7c48jSZBKKJSYo5ExOYEMnqQgLQw5YXN69gdrnVmKYIQLRGRS7UIiI6GeQZWsmBcVS+kGlrefgz39CS1/jdwJIrVGh3ZQPt1MociHszbLS2QhrcG1fR5O+EL5t9R2fUQS1jwxfpbsh2XsbPuBqSSl4dch8TM/sxjSoYyNv+91Z+/XZsXWm7lh3zoiRyARvxN1rp99dCfFobpC+gGT/bKDj0gwfp3FkUGkU1rKvOaaKm9Anzw0iCsY5iyR1MoW1EPxxz0dk2liHpZhnk9GVGcp3qfNIRuk1mo7LIe9Kl014vdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=H9bnRNg1BLztg/RndOvyjdrwv2dOtmc68BkZNs0p/m8=; b=FQgYYjhmT1a5zXp8Vk+pxe/JXwWshZAj9rCLMTDLCd97Vkn2xdDRqlSILXUCEcJ8pDhfQeothu08zyeu470NKSbJFBS3LJXISfNb0z+SPTsQ1d4lUXN/eNU+9VxNTRv1R3s61SbrC6uoCRp+uAqz49WnJVAlAmUNX/uw847heo8WIkC727UMpsdo432qbInaAs5WxTCuPzEYEZ6vhGs3DRapLfXnX5jxQkcA5/6nWBQj8h++ia3osU5+2yOVz+K+t0C96VTPAu7pfozcucYQVkt2atBYnQ90dWuwXnmO4wPeqocJ1okwMEMInEGsm1ZHLGPyjHEYbxEvkaHXt4oQCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H9bnRNg1BLztg/RndOvyjdrwv2dOtmc68BkZNs0p/m8=; b=ivdUw5iNXO8DxA6oOuPXrCb6TjF1qXqNSM+I79/dEAH/0yB/+QspgRuU1Q3lLJShDMPOM38D2HBCtKSYZUGwkQWZQj2u/bx16keqxtAyJV0dHxHgTB8iC1YHNRxYgpjusotsOhCpQyeEwMe9SJlDHlkE/AIOEfRNfyXOhPu7Hsg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vmware.com; Received: from PH0PR05MB8703.namprd05.prod.outlook.com (2603:10b6:510:bd::5) by MW4PR05MB8617.namprd05.prod.outlook.com (2603:10b6:303:120::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.22; Thu, 1 Jun 2023 09:01:15 +0000 Received: from PH0PR05MB8703.namprd05.prod.outlook.com ([fe80::5631:475a:58d4:cf66]) by PH0PR05MB8703.namprd05.prod.outlook.com ([fe80::5631:475a:58d4:cf66%6]) with mapi id 15.20.6455.020; Thu, 1 Jun 2023 09:01:15 +0000 From: Ajay Kaher To: rostedt@goodmis.org, mhiramat@kernel.org, shuah@kernel.org Cc: 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, Ajay Kaher Subject: [PATCH v3 10/10] test: ftrace: fix kprobe test for eventfs Date: Thu, 1 Jun 2023 14:30:13 +0530 Message-Id: <1685610013-33478-11-git-send-email-akaher@vmware.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1685610013-33478-1-git-send-email-akaher@vmware.com> References: <1685610013-33478-1-git-send-email-akaher@vmware.com> Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0181.namprd03.prod.outlook.com (2603:10b6:a03:2ef::6) To PH0PR05MB8703.namprd05.prod.outlook.com (2603:10b6:510:bd::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR05MB8703:EE_|MW4PR05MB8617:EE_ X-MS-Office365-Filtering-Correlation-Id: ffb13d27-3ef1-46b9-b132-08db627ec141 X-LD-Processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r7EsGjq3XoPnkYQxI5OpWWVVTCUGxXVXPdauEY10ptvfMm0C66ypqIUA9c4aCGNN+vAeNTkaLx311PEH5xL8lEZG4eLWPmKwruyT3NOWsnXjilfIJLe1YsTfxruWJKbqEF6hVkJ7aj1y67jR9/ug8DjoCGwoCG6qSqXbKd6d2TWOLN5QFaj3AWP81aFlqicwtkhA9T9vT7/Jr58qn/aWsgUci1ZEIr+UbnPKbb6OmhSfHniOnxiDIjnxy43fXp85uvgT6cVs7T+ySNFWisrdHcXZtWqvWRvtIy6qkCSLoVHIZYb3X45wnFoki1ofv1+5dPbwcCFVBuq1NKEAPJJnBWimHa5mqjh4FM45CXl37GHpmPackBigvRj5bM/KTCz3K60muufMQqbFXjIdLNgkS8hQIzPVC1qy8hV6YQ57S/cOurx0F5bg/GP1fvYv2nYX4SBceuztbYfOJJ3CsqinmJKN0NZMgUYs19uhDyyEQDXFqMRR0/8KVkW6QbeHOJnGe7FmZvDPFrooNR2Jn9jwSzeywMIXNM17spCb0nR0CvuT+Q+0fJub4S1Bwdq7X+SpdGrfMJHhrxLtlq7Zzr2qd8RV/zhaYk33zvAAsb7+cR3QWiCUKalF7YLCqhIIiWLo X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR05MB8703.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(346002)(136003)(376002)(366004)(451199021)(52116002)(6486002)(186003)(5660300002)(41300700001)(107886003)(36756003)(8676002)(38100700002)(8936002)(26005)(6506007)(38350700002)(83380400001)(4326008)(66946007)(2906002)(66556008)(478600001)(66476007)(2616005)(6512007)(86362001)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?/t9ccRGjdmE27Jrlrw7K0DkVhVg+KFMZgiplvlxVX6jw63sQPxeHsaChyitm?= =?us-ascii?Q?srMiiZK8yrFB+Lnb9OmpB5UDB4PP4ASIPEc658g+HsYGXIw3GRBOJbN51nQz?= =?us-ascii?Q?Zb5BiqM5xUzHP1Pwj5gp1c5wcaPGsqeHcKiOyRyVYITVyRDvvIv/UVdeTwDA?= =?us-ascii?Q?H2k9EaPennUK4kaxE4gYlFgIzZcB1EkzBwY1LYT/g8vDFEAGvRCQHGc1roBP?= =?us-ascii?Q?I2VvjXmePxnT4rZVgl97vsKbLoEVEVJI+MLlnKF+v517vEMbMsLo+pYPzS7k?= =?us-ascii?Q?4MbttEqN2sCZ2xERGM/TZOj5mjAdznm6z4sX8ZcMihZN9NnoyRd1KCkRKsHi?= =?us-ascii?Q?0oqTX562jqWbY33AmGV/r5pbIS8wEvt6v3/fMZV5+ld8lfQ7QQ2JC5SX9x7v?= =?us-ascii?Q?IdtI3vVrd2B//KdpOSyx55in5K21jf71O+KWoe/cucqE5vBKtiZNt8L73wGC?= =?us-ascii?Q?q77bLJ+9tI09K13WiKMYR7fXaQHqcwT4IBQ4G/PCLOg+OmKLln5rJyHQf/u3?= =?us-ascii?Q?OIb3lIwgFVIX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XG3nW7jS?= =?us-ascii?Q?VW56HjrvvBZniPiyl1v370Athm6N33DY3dO3vUs4ordMQMBPSlDguPhdZLoN?= =?us-ascii?Q?uAKB5BkUD5IvrzMQ0hz7AZzmLs/No4mTuLj0QkZRGjxQ57lA/lTuWaGum1dW?= =?us-ascii?Q?owde0/8T+AbCC7kI4HUHrqbJJLiMpb90o6agqgyK?= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffb13d27-3ef1-46b9-b132-08db627ec141 X-MS-Exchange-CrossTenant-AuthSource: PH0PR05MB8703.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2023 09:01:15.2284 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vSaCirSIiqjd5eMB5T+b+dkaluRY2BMpjRFRQUAIGemE8LPMzC3rPu4rEQZFJsJJNZebdRcqiwmOOId1bGEGSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR05MB8617 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 kprobe_args_char.tc, kprobe_args_string.tc has validation check for tracefs_create_dir, for eventfs it should be eventfs_create_dir. 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