perf tests: Add missing pthread.h include for CPU_*() macros
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 1fbe7df819d9958f139b87014a2f0d5b34da76d5 Gitweb: http://git.kernel.org/tip/1fbe7df819d9958f139b87014a2f0d5b34da76d5 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 6 Jul 2016 12:19:19 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 12 Jul 2016 15:19:53 -0300
perf tests: Add missing pthread.h include for CPU_*() macros
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/tests/mmap-basic.c | 3 +++ tools/perf/tests/openat-syscall-all-cpus.c | 3 +++ tools/perf/tests/perf-record.c | 3 +++ 3 files changed, 9 insertions(+)
tools/perf/tests/mmap-basic.c +3 -0
@@ -1,3 +1,6 @@ +/* For the CLR_() macros */ +#include <pthread.h> +#include "evlist.h" #include "evsel.h" #include "thread_map.h"
tools/perf/tests/openat-syscall-all-cpus.c +3 -0
@@ -1,3 +1,6 @@ +/* For the CPU_* macros */ +#include <pthread.h> +#include <api/fs/fs.h> #include <linux/err.h> #include "evsel.h"
tools/perf/tests/perf-record.c +3 -0
@@ -1,3 +1,6 @@ +/* For the CLR_() macros */ +#include <pthread.h> +#include <sched.h> #include "evlist.h" #include "evsel.h"