Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2787342rwd; Fri, 2 Jun 2023 14:59:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4eAwXlULcc3iCGJg+t7MmcV6Q43PlhR/Omn773kcXXh9CgJbQ2IBycDBnVZpU26mSKvI9F X-Received: by 2002:aca:2411:0:b0:398:f41:cd03 with SMTP id n17-20020aca2411000000b003980f41cd03mr1128280oic.47.1685743162084; Fri, 02 Jun 2023 14:59:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685743162; cv=pass; d=google.com; s=arc-20160816; b=tBgyCzRbAD8GujdE35E4HSdt/UbqydysicMehg4lWKTFPRUW2MOjTsuoYOlaCCFg2a 4VBOXZ2hVXJdzwk3rEfXvLihXMtLQImb+o8qy6+S64FJ83pt7iInaqMNd1LEoAhS+CiM EscIyamaxswT0nnw6AMcfBiH+4RIMJZoDKFFdC5Chs8KJOboLtGjoTZ1ZEkbhn5NRz/I 8DU/zlbyhorXNg4IK/vV5LaXbzc2K66hJo0YHeS3gh5F+lUlg8bxeC9Zm9tgkBX5ZIL+ nQ72ZwMx2lpf0PJdCLj8C+w1U+rB2GM9uzrN4wugFmYffkysF/dRGC6FUz9dTZTfK5Ur h58Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1vCQ4Y8ahXkZkLI7ZnWhw5jf5dbga5Zlmxa5WjSkbis=; b=VWgS6lF/7ngDcr45Kkj7Hi3/Z360jsXTUsFrIQLFHrEh663lwYhh/K5/vIdLsP6FJ0 YUOkMlqZ7YUKHMVfIYBj7QKLykHI7tEmxmgw3nmG/xVhWLW9XzVxLo2C1zu9Xj9xVOLI mHNmYAG6KRTBg6k82/qjllJ7pb8zuOVmEEkICRRZ9ih+5hPODyhhO904uD5pstrKcM3l moD4ulBoVXC6pfu0NOsoX4yfS5PIqdn77tzaR3oBRR9E/HC8YGDIGN85+xJMxx34Taj0 HwEUPJByzuAvBFW9pi4xv3+8UszZF94sLDHa1bq4af8qkjeHRZQgr6BDZ8aoBFv2/ogE 3RTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=IauUmEl+; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a6549c2000000b005347ef6ec13si1594006pgs.507.2023.06.02.14.59.09; Fri, 02 Jun 2023 14:59:22 -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=@Nvidia.com header.s=selector2 header.b=IauUmEl+; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236437AbjFBVq0 (ORCPT + 99 others); Fri, 2 Jun 2023 17:46:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236143AbjFBVqZ (ORCPT ); Fri, 2 Jun 2023 17:46:25 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2051.outbound.protection.outlook.com [40.107.223.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 865611A5; Fri, 2 Jun 2023 14:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NfwCmPCs6F7OWg2F4tB/gwXPvlvbolFmjtxHxUhkDbYM8hOoeuASsdltCb7DN8wblcPlKNT8gp/SwfXakDINU5inB//FnQoFUotMUk/sOQ6F3wKjimk+i5YdMroDrDfUK4pKAx7W5solNxIkxoTMPq4uZd4i4dMQXI+WBoVEZthjp58thbHbnPwBcdpZfQEQ9Rski2bTWEBY/fEbZsRcSW7gzyR1IIT35Y4+3HaUb3ew155aFs3rQFdTdqMWS9vq+8jmdMpy7imfZR4oru6/zjUkZkOFCTQpLc86xTq00r6ugMPl1QyVmQ0LxAzCwTZ1DHtdzXNHMM0AN5dm8C2wTw== 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=1vCQ4Y8ahXkZkLI7ZnWhw5jf5dbga5Zlmxa5WjSkbis=; b=m4+9usyC1VJfakblc99fy/PW3cb0oc2g00K2+8VuAdrk98/O1hsLAYby2qLVZw+ATcaPj3GSAhOMkUjEeXNkNTMgE2ZtDPXwzFxsXHUiYiTje3zA27Klzi3ocQLdD8tVKqXG1X6rrMpP5RuFtso3dIY9eGD68hHqgbnZDv42M9Fq2hDmZhXN+SRH5bXyCdeddsMExubJgXChAURcQ27ODkoGtbOqQVe6cp+iTIygYaoGbztSpXmvsuXkt7dJGBLnVszfrvOjNM4R5ZMpNLw/aAdbnnUvsWooHnFyf1nOOcoGL/zKf5oHu9CsyMQeABjttzI3RucYcIhu9enMQNpyHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1vCQ4Y8ahXkZkLI7ZnWhw5jf5dbga5Zlmxa5WjSkbis=; b=IauUmEl+mkRx2OhLvqSCzXQG2pa5ckmqXp2y0d8RLdjfT2rDtWli9lG3O9S5cYDYDtvvTBxbpm6+FOr1sO1pNeYExCs96KPcFVjs1RmLi1ABr8rrT4nIjrpO988VKlq3K1m4X1+vnnZ/V1b7bvglju4Sf6K+UG4uwbdvdMMpcSuQhW4NbbcaN+3xmIc1ZCj2accV8+JIYHjzWuc/Ek9pPwBHrFp4sTwVgf7/UdCLjDSdQbml2G69bEHClzwVSFWnLqykTYjkLUoRT3aUjYhcLoSsHWxsBmBl9KkY2yYOSrfW+lUNsRXhy972JyPI2YTOSGkZnlK5Wq1wTgCDDUPPtA== Received: from DS7PR03CA0245.namprd03.prod.outlook.com (2603:10b6:5:3b3::10) by IA0PR12MB7723.namprd12.prod.outlook.com (2603:10b6:208:431::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.28; Fri, 2 Jun 2023 21:46:20 +0000 Received: from DM6NAM11FT095.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b3:cafe::21) by DS7PR03CA0245.outlook.office365.com (2603:10b6:5:3b3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.23 via Frontend Transport; Fri, 2 Jun 2023 21:46:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT095.mail.protection.outlook.com (10.13.172.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.24 via Frontend Transport; Fri, 2 Jun 2023 21:46:19 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Fri, 2 Jun 2023 14:46:11 -0700 Received: from [10.110.48.28] (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Fri, 2 Jun 2023 14:46:10 -0700 Message-ID: Date: Fri, 2 Jun 2023 14:46:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 05/12] selftests/mm: fix invocation of tests that are run via shell scripts Content-Language: en-US To: Peter Xu CC: Andrew Morton , David Hildenbrand , Shuah Khan , Nathan Chancellor , , , LKML References: <20230602013358.900637-1-jhubbard@nvidia.com> <20230602013358.900637-6-jhubbard@nvidia.com> From: John Hubbard In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT095:EE_|IA0PR12MB7723:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c19a4ef-4db0-467b-b57d-08db63b2cceb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qRRhLhkMMllEIFULEC3M0BqUy9RWEuoyV37YCHRBcohaazmiQYClP9DzUALiy/O3IiuonhmVgg3v4Wn2N1x7vDqXj2iF6A3KQNVqFNEnQAxkg0PfUAveO4JHiD0qupIzym5MkjaTW83HAjwkRbjxbXejqujRCLfvzO0j3AeSA3vPELcI16Nx2aabEGwvdyKcY7uJeVKHR1g9qq6xyYCPmO0T7VRUExphnb5eh2utJFLD4cT2jHg3IfvENZFraAuSuqYN3qKk789x9IA26eFvTxTrPMU+TPpxpVh6ohOeJR9FgUKzGHJYHmp5tV68/8HA5lKe1HhELVQxTcRI/bdKWfFTih2Bvd1gFVKhHXC9UvNiVlpCzl1I/SBEfeoEePfr46kaHM2mUQr8Y/5E3QupTGrGk9vewNDUhaDAxWZvtIq2YQ1reSZf7nbnjACBOlQyxhlPu7F/SYa/kNAnc712pRW1n3xjUlqJ+na5ejWQOeF53M0JZkjX2t3ZUusBbfTkLaaV90vltw0PdITcorb7H3wJr8jkYQeL9tfVbuw8wTsaItcSlaer8+O/Mwv0GIq/G0m2Jyr4sycrtdoAWexqgb8pztP+JXB7USfThRLks0Is5ybvthhOU4P4soo6E5HLJ6rK5ZK6/hluN7zKy4Z9lM0DsBSai6BNQyNZikFi5XrEAjUdjhNcYmGYQpokjn6qXmtbI75atIahVbLePdPfd3ceIWYH5XWvjaHKZMwM1IhZct1v904Rzx+lTHgFcEiJFkjEqWnv5pZi/ruQOT3uLtRmbtF2arQ52Feit6ktdRc= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(136003)(396003)(39860400002)(346002)(376002)(451199021)(36840700001)(46966006)(40470700004)(426003)(336012)(40460700003)(47076005)(2616005)(2906002)(36756003)(86362001)(82310400005)(31696002)(7636003)(356005)(82740400003)(36860700001)(40480700001)(316002)(41300700001)(5660300002)(8936002)(8676002)(478600001)(16576012)(54906003)(70206006)(70586007)(4326008)(6916009)(31686004)(26005)(16526019)(186003)(53546011)(66899021)(21314003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2023 21:46:19.4978 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9c19a4ef-4db0-467b-b57d-08db63b2cceb X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT095.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7723 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 6/2/23 14:36, Peter Xu wrote: ... >> But here, the run_vmtests.sh file requires bash already, as per the >> first line: >> >> #!/bin/bash >> >> ...which is ultimately why I decided to use bash, rather than sh here. > > That one can be easily override with $XXX run_vmtests.sh, hard-coded "bash" > in Makefiles can't, afaiu. Yes, but then you'd have to deal with the rest of the kernel, and bash is just completely woven into the whole thing. Just in the selftests alone, there are dozens or hundreds of direct invocations. $ git grep -w bash | wc -l 1146 $ cd tools/testing/selftests/ $ git grep -w bash | wc -l 560 $ git grep -w bash | grep -v '/bin' | wc -l 113 That ship really has sailed: it's not practical to expect that kind of portability here. ... > Just to mention that I was not talking about $(shell ...), but the > environment var $(SHELL), or "env | grep SHELL". > > Please feel free to have a look at tools/perf/arch/x86/Makefile. Yes, but that is a *Makefile*. (And only one out of 145, the others do not use this.) There is no use of SHELL outside of Makefiles, nor in fact anywhere in the kernel. thanks, -- John Hubbard NVIDIA