mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeffrin Jose T <ahiliation@yahoo.co.in>
To: shuah@kernel.org, kstewart@linuxfoundation.org,
	tglx@linutronix.de, pombredanne@nexb.com,
	gregkh@linuxfoundation.org
Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
	Jeffrin Jose T <ahiliation@yahoo.co.in>,
	Jeffrin Jose T <jeffrin@rajagiritech.edu.in>
Subject: [PATCH] selftest: intel_pstate: More accurate error message and also a debug support message from aperf.c
Date: Tue, 15 May 2018 03:31:54 +0530	[thread overview]
Message-ID: <20180514220154.9507-1-ahiliation@yahoo.co.in> (raw)

Fix for  aperf.c to produce the path of the file which is in mention
during error report.CONFIG_X86_MSR=m support requirement is also mentioned.

Signed-off-by: Jeffrin Jose T <jeffrin@rajagiritech.edu.in>
---
 tools/testing/selftests/intel_pstate/aperf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/intel_pstate/aperf.c b/tools/testing/selftests/intel_pstate/aperf.c
index d21edea9c560..da98c1673f08 100644
--- a/tools/testing/selftests/intel_pstate/aperf.c
+++ b/tools/testing/selftests/intel_pstate/aperf.c
@@ -41,7 +41,9 @@ int main(int argc, char **argv) {
 	fd = open(msr_file_name, O_RDONLY);
 
 	if (fd == -1) {
-		perror("Failed to open");
+		printf("Failed to open /dev/cpu/%d/msr:", cpu);
+		printf(" No such file or directory:");
+		printf(" Make sure CONFIG_X86_MSR=m support is Enabled\n");
 		return 1;
 	}
 
-- 
2.17.0

             reply	other threads:[~2018-05-14 22:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-14 22:01 Jeffrin Jose T [this message]
2018-05-15 20:22 ` Shuah Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180514220154.9507-1-ahiliation@yahoo.co.in \
    --to=ahiliation@yahoo.co.in \
    --cc=gregkh@linuxfoundation.org \
    --cc=jeffrin@rajagiritech.edu.in \
    --cc=kstewart@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=pombredanne@nexb.com \
    --cc=shuah@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®