Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp21863imm; Wed, 30 May 2018 16:43:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLD/onhuGqU2byG61X84jcVdIVy0a8dlfHItjOE28xs3qAVvnazWIcnKr8IxaIjzqtZetRh X-Received: by 2002:a62:18d6:: with SMTP id 205-v6mr4641559pfy.242.1527723833940; Wed, 30 May 2018 16:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527723833; cv=none; d=google.com; s=arc-20160816; b=huzMef6ex+9RbZTH3Wh6YCzufmLs+VHhBhDBIGvEZ/HggzfpGBH/PBSsqETa7fKnPd FcQC1eiSJ0NcQPOkg0XA22KdK4MrQZLEJJ+DD9J0TwGLoa9y/VhiUnDbCnxqQF7DmyzJ 0rVVxwL9S+76+PuqYi+VUUOIYlo96ewKYPZqPatUTye8PvtVUV5hQ/sVLNs2nemIPHYx FeJmY2CxofwxGBYtPItsWjG0R5ebfbSQMQuFbJxR9yHLFQ/kb778nkVQEcWYygFSn2HC fg4VOLvEM9AS+oktoilZ7eL0vFjtpV8AGXDKY9z4eUb7BpBv+PrNQICdA3hs3+Tv+mpy epjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=fsk6vucNwIevCBCUxRtdPCurHAcWoPflQqe2ObrDejU=; b=VhB9ncRSNDasFix0Qg4c/a7hpMXK6FBJmY+IFTcwz5dOR/8Vpp48t1SvMot0TUMK0P YWEYZiGcHcf0L5pZtFgidc0i7pI3TE5zTl4Hx6HbkFOCkcffguIlVKHB9gBGYsATi+5G CeS2yBwqaYZt5OMcYFM51p8d5kIK+ngBcXtLgEwaYRD5up+DajbQq3QwR0Kcs3Dvidmb WN+cBhCl7zOPgL8mlMncamvlBUVN23rP4ozxrMBpxUuFNCEoF1ghJvcG3cDYnKYSYSHx 37Dge/IpmsB+smsDSzzLJmQiNgSOOwTpEZoiqySLHgBxYmo2Ll6uyMtT2BAvwfhs9v5g u0EQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4-v6si13666160plj.43.2018.05.30.16.43.40; Wed, 30 May 2018 16:43:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932591AbeE3Xmp (ORCPT + 99 others); Wed, 30 May 2018 19:42:45 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:45816 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932408AbeE3Xmm (ORCPT ); Wed, 30 May 2018 19:42:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 5ED08C1060; Wed, 30 May 2018 23:42:41 +0000 (UTC) Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo01-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JdAedNRvxYgx; Wed, 30 May 2018 23:42:41 +0000 (UTC) Received: from [192.168.1.87] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 1F3E7C0425; Wed, 30 May 2018 23:42:27 +0000 (UTC) Subject: Re: [RESEND PATCH] selftests: intel_pstate: notification about privilege required to run intel_pstate testing script To: Jeffrin Jose T , daniel.diaz@linaro.org, kstewart@linuxfoundation.org, tglx@linutronix.de, thomas@m3y3r.de, gregkh@linuxfoundation.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20180530220339.6107-1-ahiliation@gmail.com> From: Shuah Khan Message-ID: <16b7c1d5-3fe8-2bc9-6037-1fd61624f992@kernel.org> Date: Wed, 30 May 2018 17:42:19 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180530220339.6107-1-ahiliation@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/30/2018 04:03 PM, Jeffrin Jose T wrote: > The intel_pstate related testing script need root level privileges > when trying to access certain file for the successful execution of > the script.But this is not the case always like when using evaluation > only mode, which only require user level privilege. > > This patch is to notify the user about the privilege the script > demands for the successful execution of the test. > > Signed-off-by: Jeffrin Jose T (Rajagiri SET) > --- I will take this patch and apply it to linux-kselftest next for 4.18-rc1. For next time, this patch should have been tagged v2 not RESEND. Also please include changes made since the last version in this spot after the Signed-off-by line. > tools/testing/selftests/intel_pstate/run.sh | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh > index 8576f6564307..e7008f614ad7 100755 > --- a/tools/testing/selftests/intel_pstate/run.sh > +++ b/tools/testing/selftests/intel_pstate/run.sh > @@ -38,6 +38,12 @@ if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then > exit $ksft_skip > fi > > +msg="skip all tests:" > +if [ $UID != 0 ] && [ $EVALUATE_ONLY == 0 ]; then > + echo $msg please run this as root >&2 > + exit $ksft_skip > +fi > + > max_cpus=$(($(nproc)-1)) > > function run_test () { > thanks, -- Shuah