Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp16663pxb; Wed, 6 Apr 2022 20:17:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9gLEPA2bdHOPsXkZiPDMdyQ8EYpTLXlKZE1u486stCUnjYrgbXcwkxlDsGGj6vdvbH2Uu X-Received: by 2002:a17:906:1645:b0:6ce:de9:6eb1 with SMTP id n5-20020a170906164500b006ce0de96eb1mr11520321ejd.616.1649301463787; Wed, 06 Apr 2022 20:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649301463; cv=none; d=google.com; s=arc-20160816; b=O3ptqmIZ6/nP+xkdTzjJwm1jpfdKyIznSZ03A2K/cXrjO6pHO6AtnoBSQhgFot+oaI UEBRblEpKvEJfXg8bXcyd/GOxlEtm4vWewlr+G1l8EYY0PZBBfVVTgORey3DvEjbm9F5 b66SgaBd/ATZkp2tv182LDabb6byNgw2CLgWGPGH5bdKDLP+gaGEVQKY2lBDb/xIdKcE QzXygZhRQbnuUqBHtDZPEvsSC0qx5iSnMDPjA1CkXzF4vFb1NmyR1f5R9YEz6G+EpNGf pPj2QGDtUYX6+7LuE8+oTSHvEb5AcxvxioVBfz3GqE7sy0/ZJi8Cj5apBaMZGtc29ieh jykQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=QVhp+oyIa/ZllpX8afFD131iOJTpV5esF+kDy6nIUFY=; b=Uy4LGAjpUDsYbLMYoP8EH2PW4l6oCrt7EUAjFbPbvKTQiLYJgWlK5XwI4QSY00lmYM BtGPxBeiO12wWUXWbYww9QT/CdveXbJpot6YU7WrH59XhVeZoksAZzGN2V9AePsZnQl6 I9f+zRFseKJHGTlkrau+hBbrpNnIWXcbmoGDB4KF01+7+qjaw4noGKMUbuv4w8pT+Bqw kJzJMy56pBs8FbY+f8GauqHQSI+XkHu06bMGxL4DAtC3sLQjU20dDq7Xrm/5O0zCkGEX XNiUuYlh4mjY+5Q++R26WjAXMimuIKexqxoN61D7yBzMVS5je99/jVsZvbTL/PAr5e2C DNWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=HgxbkHUh; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka4-20020a170907990400b006df76385e9asi12552809ejc.826.2022.04.06.20.17.17; Wed, 06 Apr 2022 20:17:43 -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=@linuxfoundation.org header.s=google header.b=HgxbkHUh; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235059AbiDFVE7 (ORCPT + 99 others); Wed, 6 Apr 2022 17:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236605AbiDFVDp (ORCPT ); Wed, 6 Apr 2022 17:03:45 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FF601EE9EA for ; Wed, 6 Apr 2022 12:35:27 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id z8so3495741oix.3 for ; Wed, 06 Apr 2022 12:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QVhp+oyIa/ZllpX8afFD131iOJTpV5esF+kDy6nIUFY=; b=HgxbkHUhuJvQIkFDYaw/Dp2LQE2zRcf1CkgHx1kUrq0xvW/V/GEu7+AjF8VCb8IGOP nitc6UvlE6MaW9iwZ1qvYWipMLuuxAA3wMBe/Dmitmz4ZPCFlTWrqOY8g7IVkDN7fs/u lqW3P2lqjbzxYE8Nd+h/VX85rry5jYlkSiw1U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QVhp+oyIa/ZllpX8afFD131iOJTpV5esF+kDy6nIUFY=; b=GT50VBEDeNjV2GbD98hzlGtnLX17/x22vVols4uDZYzQXRYHLgtZsYtryPzuYz9boU +5bC8Zh8kaGBaMj8+YLsNYPl4mMLGUxBfVQlYNl+MNIlbQ7cKTNERbq9/sYVhjGvdbAS UEVEFC2MtVS3PsU6dEmM+V7o2XRQzRJTUS0nGDlp13kB57VROtx9kVCXN3wxmMh970rh kKrLnFIZROcTPY+2wsxOKASeC20hi84sm9GuU4TTYktqR9GOuvqE3ujjyMkPRd/mmLkD ZsZUm6nmioSGBDE/lygzw6PeOal76j0tjxTX8KAG8crvOEhf+VGOAJU8rajpBNPWSbLs ylLg== X-Gm-Message-State: AOAM5325i6iRgny7UMyiaGIlyIiH+cZeq4uJKIq6HUjmkemtW73G1+fd m3cw4LdA5uYwdAk4CSveR5VboQ== X-Received: by 2002:a05:6808:613:b0:2ec:f542:4a7b with SMTP id y19-20020a056808061300b002ecf5424a7bmr4301008oih.76.1649273726860; Wed, 06 Apr 2022 12:35:26 -0700 (PDT) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id o19-20020a056870969300b000dea1b17aacsm2536208oaq.36.2022.04.06.12.35.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 12:35:26 -0700 (PDT) Subject: Re: [PATCH v2] selftest/vm clarify error statement in gup_test To: Sidhartha Kumar , shuah@kernel.org, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20220405214809.3351223-1-sidhartha.kumar@oracle.com> From: Shuah Khan Message-ID: Date: Wed, 6 Apr 2022 13:35:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220405214809.3351223-1-sidhartha.kumar@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 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_NONE,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 4/5/22 3:48 PM, Sidhartha Kumar wrote: > Print three possible reasons /sys/kernel/debug/gup_test > cannot be opened to help users of this test diagnose > failures. > > Signed-off-by: Sidhartha Kumar > --- > v2: > - Add support for skipping the test due to unmet dependencies. > - Use errno to print a more specific message. > - Add check for root privileges. > - dropped CC to stable. > tools/testing/selftests/vm/gup_test.c | 22 +++++++++++++-- > tools/testing/selftests/vm/run_vmtests.sh | 33 ++++++++++++++++------- > 2 files changed, 44 insertions(+), 11 deletions(-) > Thank you for fixing the reporting and adding tests for dependencies and skip conditions. Reviewed-by: Shuah Khan thanks, -- Shuah