aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/bench/futex-lock-pi.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-07-06 11:14:56 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-12 14:19:52 -0400
commit8a15858904c803450b6763d09f53d9a1dc7ab1c3 (patch)
tree604ad7f2440a77150461ca57c6a828402073dd61 /tools/perf/bench/futex-lock-pi.c
parentc8b5f2c96d1bf6cefcbe12f67dce0b892fe20512 (diff)
perf bench: Add missing pthread.h include for CPU_*() macros
Cc: David Ahern <dsahern@gmail.com> Cc: Davidlohr Bueso <dbueso@suse.de> Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> 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-48qbfv7tqs8n8ey74lbyfjtq@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/bench/futex-lock-pi.c')
-rw-r--r--tools/perf/bench/futex-lock-pi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/bench/futex-lock-pi.c b/tools/perf/bench/futex-lock-pi.c
index 6952db65508a..be95506cc0d1 100644
--- a/tools/perf/bench/futex-lock-pi.c
+++ b/tools/perf/bench/futex-lock-pi.c
@@ -2,6 +2,9 @@
2 * Copyright (C) 2015 Davidlohr Bueso. 2 * Copyright (C) 2015 Davidlohr Bueso.
3 */ 3 */
4 4
5/* For the CLR_() macros */
6#include <pthread.h>
7
5#include "../perf.h" 8#include "../perf.h"
6#include "../util/util.h" 9#include "../util/util.h"
7#include "../util/stat.h" 10#include "../util/stat.h"
@@ -13,7 +16,6 @@
13#include <err.h> 16#include <err.h>
14#include <stdlib.h> 17#include <stdlib.h>
15#include <sys/time.h> 18#include <sys/time.h>
16#include <pthread.h>
17 19
18struct worker { 20struct worker {
19 int tid; 21 int tid;