perf tests: Add missing pthread.h include for CPU_*() macros
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Jul 2016 15:19:19 +0000 (12:19 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 18:19:53 +0000 (15:19 -0300)
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-dfcynqzvecsu55zmpxub9jgv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/mmap-basic.c
tools/perf/tests/openat-syscall-all-cpus.c
tools/perf/tests/perf-record.c

index 5c9b931b7b66ad97e1899b48cb92557eead44235..634bce9caebd343278e24f6c32ab3569f9bc003d 100644 (file)
@@ -1,3 +1,6 @@
+/* For the CLR_() macros */
+#include <pthread.h>
+
 #include "evlist.h"
 #include "evsel.h"
 #include "thread_map.h"
index 265abb12dfffc14fca968fdc948448a7a6e3524a..c8d9592eb142dd08ef4cf216dd67e6e6614996b7 100644 (file)
@@ -1,3 +1,6 @@
+/* For the CPU_* macros */
+#include <pthread.h>
+
 #include <api/fs/fs.h>
 #include <linux/err.h>
 #include "evsel.h"
index 3eb67a977b6ae604bd807b037912edb662fca648..8f2e1de6d0eae93d0bb8de2e12602f9898176136 100644 (file)
@@ -1,3 +1,6 @@
+/* For the CLR_() macros */
+#include <pthread.h>
+
 #include <sched.h>
 #include "evlist.h"
 #include "evsel.h"