提交 d0103c5c 编写于 作者: J Jeffrin Jose T 提交者: Shuah Khan (Samsung OSG)

selftest: intel_pstate: debug support message from aperf.c and return value

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: NJeffrin Jose T [Rajagiri SET] <ahiliation@gmail.com>
Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
上级 adb31be4
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#include <sys/timeb.h> #include <sys/timeb.h>
#include <sched.h> #include <sched.h>
#include <errno.h> #include <errno.h>
#include <string.h>
#include "../kselftest.h"
void usage(char *name) { void usage(char *name) {
printf ("Usage: %s cpunum\n", name); printf ("Usage: %s cpunum\n", name);
...@@ -41,8 +43,8 @@ int main(int argc, char **argv) { ...@@ -41,8 +43,8 @@ int main(int argc, char **argv) {
fd = open(msr_file_name, O_RDONLY); fd = open(msr_file_name, O_RDONLY);
if (fd == -1) { if (fd == -1) {
perror("Failed to open"); printf("/dev/cpu/%d/msr: %s\n", cpu, strerror(errno));
return 1; return KSFT_SKIP;
} }
CPU_ZERO(&cpuset); CPU_ZERO(&cpuset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册