Commit d0103c5c authored by Jeffrin Jose T's avatar Jeffrin Jose T Committed by 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: default avatarJeffrin Jose T [Rajagiri SET] <ahiliation@gmail.com>
Signed-off-by: default avatarShuah Khan (Samsung OSG) <shuah@kernel.org>
parent adb31be4
......@@ -9,6 +9,8 @@
#include <sys/timeb.h>
#include <sched.h>
#include <errno.h>
#include <string.h>
#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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment