Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3651617imm; Tue, 29 May 2018 10:55:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpRLOnQI8Kda+LrM7z2gyAiCw3UWinMhKSOzjTjMcRvxNsLnBsWtqVTVWolNWcZGXDk3oFl X-Received: by 2002:a63:7a07:: with SMTP id v7-v6mr14598398pgc.444.1527616539585; Tue, 29 May 2018 10:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527616539; cv=none; d=google.com; s=arc-20160816; b=VeH4YppviyTIyCM+JpqAraiHFwgsvao7THda/mdTuU/j3t1lwAvLF1ZgZGb1pLJaoF 3nciNu22vTqL7TfBaIQ+yoBO42/S7LFDcLVWU1Tr01ykWx6WqzwJzl7TQOvBwaqP4Un+ 89iY4CmIGq6qX4SgozzbAiAuEW05g4A9ijkXs2uwNetvtmgUDd7y85FQYREO0en2jRvA sNIubAA2Z4IyYOjqf2uT3f/hwHNh9AWrYXF8zCUpoze2ih2tCPJS219JjrdqyDDDga3C RGDhSu3jEx2OyYJS0l7glhtaP23CeC6bxTDBBn+3F1TBsgvzKcPC9SzacEOBfqbagGlC 791g== 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=iFDFj9DxNgWYZu+wD5GEG7DRSXZVG+7yWS2M3RREwfU=; b=AcqBu8fQDgBdjeh2T7/mC+xItlAKk45MssfNA/iLdSbFUIlebANZ+4/B0kBydGyOSv UD5gsW/n7C34tIQBEr8CCnAi+3mRafhLKZvKz7eWYjwzFlF23sdW8ed/gUvVgnBuS4qt DT10fl27WP/Z1/5IUeBvs3JhBy9ZGaUuUlhLrORinn879M93dY9D00Z+pjTmHWZGZJFa YQwAb63CeRTMIbXU+7B/yT1gWQ9DbpoVX6pzmqEpIFMg4nZnv7fytD49+XE0eSw7koa+ JrJ8SanOZSAa6+dbiVT1EfCyLckf0Ky/yzRf2f3aeS6rm23+YwB4jj3pAqkBCl+/vW4I rMdg== 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 t195-v6si25861355pgc.481.2018.05.29.10.55.25; Tue, 29 May 2018 10:55:39 -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 S965575AbeE2Ryq (ORCPT + 99 others); Tue, 29 May 2018 13:54:46 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:36114 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965349AbeE2Ryn (ORCPT ); Tue, 29 May 2018 13:54:43 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 8FBB4C0F5C; Tue, 29 May 2018 17:54:42 +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 zof34RjlzeUo; Tue, 29 May 2018 17:54:42 +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 40F0CC0713; Tue, 29 May 2018 17:54:29 +0000 (UTC) Subject: Re: [PATCH] [RESEND] selftest: intel_pstate: debug support message from aperf.c and return value fix. To: Jeffrin Jose T , kstewart@linuxfoundation.org, tglx@linutronix.de, pombredanne@nexb.com, gregkh@linuxfoundation.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20180529172436.4432-1-ahiliation@gmail.com> From: Shuah Khan Message-ID: Date: Tue, 29 May 2018 11:54:28 -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: <20180529172436.4432-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/29/2018 11:24 AM, Jeffrin Jose T wrote: > Additional message along with an error message which is more > verbose for debug support from aperf.c and updated with the > new return value "KSFT_SKIP". > > Signed-off-by: Jeffrin Jose T [Rajagiri SET] > --- > tools/testing/selftests/intel_pstate/aperf.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/tools/testing/selftests/intel_pstate/aperf.c b/tools/testing/selftests/intel_pstate/aperf.c > index d21edea9c560..f6cd03a87493 100644 > --- a/tools/testing/selftests/intel_pstate/aperf.c > +++ b/tools/testing/selftests/intel_pstate/aperf.c > @@ -9,6 +9,8 @@ > #include > #include > #include > +#include > +#include "../kselftest.h" > > void usage(char *name) { > printf ("Usage: %s cpunum\n", name); > @@ -41,8 +43,8 @@ int main(int argc, char **argv) { > fd = open(msr_file_name, O_RDONLY); > > if (fd == -1) { > - perror("Failed to open"); > - return 1; > + printf("/dev/cpu/%d/msr: %s\n", cpu, strerror(errno)); > + return KSFT_SKIP; > } > > CPU_ZERO(&cpuset); > Thanks, Applied to linux-kselftest next for 4.18-rc1 -- Shuah