Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1441894

[PATCH 15/66] perf tests: Add missing pthread.h include for CPU_*() macros

From Arnaldo Carvalho de Melo <acme@kernel.org>
Newsgroups linux.kernel
Subject [PATCH 15/66] perf tests: Add missing pthread.h include for CPU_*() macros
Date 2016-07-13 01:00 +0200
Message-ID <rUeOM-2RS-83@gated-at.bofh.it> (permalink)
References <rUeF3-2Ns-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Arnaldo Carvalho de Melo <acme@redhat.com>

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              | 3 +++
 tools/perf/tests/openat-syscall-all-cpus.c | 3 +++
 tools/perf/tests/perf-record.c             | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-basic.c
index 5c9b931b7b66..634bce9caebd 100644
--- a/tools/perf/tests/mmap-basic.c
+++ b/tools/perf/tests/mmap-basic.c
@@ -1,3 +1,6 @@
+/* For the CLR_() macros */
+#include <pthread.h>
+
 #include "evlist.h"
 #include "evsel.h"
 #include "thread_map.h"
diff --git a/tools/perf/tests/openat-syscall-all-cpus.c b/tools/perf/tests/openat-syscall-all-cpus.c
index 265abb12dfff..c8d9592eb142 100644
--- a/tools/perf/tests/openat-syscall-all-cpus.c
+++ b/tools/perf/tests/openat-syscall-all-cpus.c
@@ -1,3 +1,6 @@
+/* For the CPU_* macros */
+#include <pthread.h>
+
 #include <api/fs/fs.h>
 #include <linux/err.h>
 #include "evsel.h"
diff --git a/tools/perf/tests/perf-record.c b/tools/perf/tests/perf-record.c
index 3eb67a977b6a..8f2e1de6d0ea 100644
--- a/tools/perf/tests/perf-record.c
+++ b/tools/perf/tests/perf-record.c
@@ -1,3 +1,6 @@
+/* For the CLR_() macros */
+#include <pthread.h>
+
 #include <sched.h>
 #include "evlist.h"
 #include "evsel.h"
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT PULL 00/66] perf/core improvements and fixes Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 25/66] perf tools: Add missing header to color.c Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 33/66] perf bench futex: Add missing compiler.h header Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 09/66] perf trace beauty open_flags: Add missing headers Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 15/66] perf tests: Add missing pthread.h include for CPU_*() macros Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 37/66] tools lib bpf: Copy bpf.h and bpf_common.h from the kernel Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  Re: [GIT PULL 00/66] perf/core improvements and fixes Ingo Molnar <mingo@kernel.org> - 2016-07-13 09:10 +0200
    Re: [GIT PULL 00/66] perf/core improvements and fixes Ingo Molnar <mingo@kernel.org> - 2016-07-13 09:40 +0200
      Re: [GIT PULL 00/66] perf/core improvements and fixes Josh Poimboeuf <jpoimboe@redhat.com> - 2016-07-13 22:50 +0200
        Re: [GIT PULL 00/66] perf/core improvements and fixes Peter Zijlstra <peterz@infradead.org> - 2016-07-13 23:00 +0200
          Re: [GIT PULL 00/66] perf/core improvements and fixes Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-14 01:30 +0200
    Re: [GIT PULL 00/66] perf/core improvements and fixes Ingo Molnar <mingo@kernel.org> - 2016-07-13 09:40 +0200
  Re: [GIT PULL 00/66] perf/core improvements and fixes Ingo Molnar <mingo@kernel.org> - 2016-07-13 09:40 +0200

csiph-web