summaryrefslogtreecommitdiffstats
path: root/tools/perf/bench/futex-hash.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2016-07-07 16:01:46 +0200
committerArnaldo Carvalho de Melo2016-07-12 20:19:54 +0200
commit9c304f6c715f1849bb5b0d450a600dc731a80bda (patch)
treed68d93109134bafe3f40033ac390acb2c25c9794 /tools/perf/bench/futex-hash.c
parentperf tests openat-syscall-tp-fields: Add some conditional defines (diff)
downloadkernel-qcow2-linux-9c304f6c715f1849bb5b0d450a600dc731a80bda.tar.gz
kernel-qcow2-linux-9c304f6c715f1849bb5b0d450a600dc731a80bda.tar.xz
kernel-qcow2-linux-9c304f6c715f1849bb5b0d450a600dc731a80bda.zip
perf bench: Disentangle headers
We should try avoiding that perf.h header, it includes way too much stuff, making it difficult to use things like setting _GNU_SOURCE only on a small set of headers. Cc: Adrian Hunter <adrian.hunter@intel.com> 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-lb6eg9w1kzrwhv0gm3ho0h54@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.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/bench/futex-hash.c b/tools/perf/bench/futex-hash.c
index 8fc1782f90f5..caa9726ec9bd 100644
--- a/tools/perf/bench/futex-hash.c
+++ b/tools/perf/bench/futex-hash.c
@@ -11,10 +11,14 @@
/* For the CLR_() macros */
#include <pthread.h>
-#include "../perf.h"
+#include <errno.h>
+#include <signal.h>
+#include <stdlib.h>
+#include <linux/kernel.h>
+#include <sys/time.h>
+
#include "../util/stat.h"
#include <subcmd/parse-options.h>
-#include "../util/header.h"
#include "bench.h"
#include "futex.h"