aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuhammad Falak R Wani <falakreyaz@gmail.com>2016-05-13 08:05:43 -0400
committerShuah Khan <shuahkh@osg.samsung.com>2016-05-16 11:06:17 -0400
commit6eab37daf0ec1077fd612ff27ab513db20f33767 (patch)
treee5dd3c8dec3ee56edcd09b288d84e2c0327d41ef
parent2c6c3946c3955f96ae0d48fdac940903918207d8 (diff)
tools: testing: define the _GNU_SOURCE macro
Add the macro _GNU_SOURCE, to fix CPU_ZERO and CPU_SET undefined compile errors. Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
-rwxr-xr-xtools/testing/selftests/intel_pstate/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh
index bdaf37e92684..7868c106b8b1 100755
--- a/tools/testing/selftests/intel_pstate/run.sh
+++ b/tools/testing/selftests/intel_pstate/run.sh
@@ -32,7 +32,7 @@ EVALUATE_ONLY=0
32max_cpus=$(($(nproc)-1)) 32max_cpus=$(($(nproc)-1))
33 33
34# compile programs 34# compile programs
35gcc -o aperf aperf.c -lm 35gcc aperf.c -Wall -D_GNU_SOURCE -o aperf -lm
36[ $? -ne 0 ] && echo "Problem compiling aperf.c." && exit 1 36[ $? -ne 0 ] && echo "Problem compiling aperf.c." && exit 1
37gcc -o msr msr.c -lm 37gcc -o msr msr.c -lm
38[ $? -ne 0 ] && echo "Problem compiling msr.c." && exit 1 38[ $? -ne 0 ] && echo "Problem compiling msr.c." && exit 1