summaryrefslogtreecommitdiffstats
path: root/tools/perf/bench/futex-hash.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2016-07-06 17:14:56 +0200
committerArnaldo Carvalho de Melo2016-07-12 20:19:52 +0200
commit8a15858904c803450b6763d09f53d9a1dc7ab1c3 (patch)
tree604ad7f2440a77150461ca57c6a828402073dd61 /tools/perf/bench/futex-hash.c
parenttools: Introduce str_error_r() (diff)
downloadkernel-qcow2-linux-8a15858904c803450b6763d09f53d9a1dc7ab1c3.tar.gz
kernel-qcow2-linux-8a15858904c803450b6763d09f53d9a1dc7ab1c3.tar.xz
kernel-qcow2-linux-8a15858904c803450b6763d09f53d9a1dc7ab1c3.zip
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-hash.c')
-rw-r--r--tools/perf/bench/futex-hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/bench/futex-hash.c b/tools/perf/bench/futex-hash.c
index 0999ac536d86..8fc1782f90f5 100644
--- a/tools/perf/bench/futex-hash.c
+++ b/tools/perf/bench/futex-hash.c
@@ -8,8 +8,10 @@
* many threads and futexes as possible.
*/
+/* For the CLR_() macros */
+#include <pthread.h>
+
#include "../perf.h"
-#include "../util/util.h"
#include "../util/stat.h"
#include <subcmd/parse-options.h>
#include "../util/header.h"
@@ -17,9 +19,7 @@
#include "futex.h"
#include <err.h>
-#include <stdlib.h>
#include <sys/time.h>
-#include <pthread.h>
static unsigned int nthreads = 0;
static unsigned int nsecs = 10;