aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-07-07 10:01:46 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-12 14:19:54 -0400
commit9c304f6c715f1849bb5b0d450a600dc731a80bda (patch)
treed68d93109134bafe3f40033ac390acb2c25c9794 /tools/perf
parentab6526b2ca2c2c3b383a24b2a0c68c5a8f71b820 (diff)
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')
-rw-r--r--tools/perf/bench/futex-hash.c8
-rw-r--r--tools/perf/bench/futex-lock-pi.c6
-rw-r--r--tools/perf/bench/futex-requeue.c6
-rw-r--r--tools/perf/bench/futex-wake-parallel.c6
-rw-r--r--tools/perf/bench/futex-wake.c6
5 files changed, 18 insertions, 14 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 @@
11/* For the CLR_() macros */ 11/* For the CLR_() macros */
12#include <pthread.h> 12#include <pthread.h>
13 13
14#include "../perf.h" 14#include <errno.h>
15#include <signal.h>
16#include <stdlib.h>
17#include <linux/kernel.h>
18#include <sys/time.h>
19
15#include "../util/stat.h" 20#include "../util/stat.h"
16#include <subcmd/parse-options.h> 21#include <subcmd/parse-options.h>
17#include "../util/header.h"
18#include "bench.h" 22#include "bench.h"
19#include "futex.h" 23#include "futex.h"
20 24
diff --git a/tools/perf/bench/futex-lock-pi.c b/tools/perf/bench/futex-lock-pi.c
index be95506cc0d1..e2ba0d6f64fe 100644
--- a/tools/perf/bench/futex-lock-pi.c
+++ b/tools/perf/bench/futex-lock-pi.c
@@ -5,11 +5,11 @@
5/* For the CLR_() macros */ 5/* For the CLR_() macros */
6#include <pthread.h> 6#include <pthread.h>
7 7
8#include "../perf.h" 8#include <signal.h>
9#include "../util/util.h"
10#include "../util/stat.h" 9#include "../util/stat.h"
11#include <subcmd/parse-options.h> 10#include <subcmd/parse-options.h>
12#include "../util/header.h" 11#include <linux/kernel.h>
12#include <errno.h>
13#include "bench.h" 13#include "bench.h"
14#include "futex.h" 14#include "futex.h"
15 15
diff --git a/tools/perf/bench/futex-requeue.c b/tools/perf/bench/futex-requeue.c
index 7d9712c8ff01..7eceb0500900 100644
--- a/tools/perf/bench/futex-requeue.c
+++ b/tools/perf/bench/futex-requeue.c
@@ -11,11 +11,11 @@
11/* For the CLR_() macros */ 11/* For the CLR_() macros */
12#include <pthread.h> 12#include <pthread.h>
13 13
14#include "../perf.h" 14#include <signal.h>
15#include "../util/util.h"
16#include "../util/stat.h" 15#include "../util/stat.h"
17#include <subcmd/parse-options.h> 16#include <subcmd/parse-options.h>
18#include "../util/header.h" 17#include <linux/kernel.h>
18#include <errno.h>
19#include "bench.h" 19#include "bench.h"
20#include "futex.h" 20#include "futex.h"
21 21
diff --git a/tools/perf/bench/futex-wake-parallel.c b/tools/perf/bench/futex-wake-parallel.c
index aca12284d8af..8143b54ff119 100644
--- a/tools/perf/bench/futex-wake-parallel.c
+++ b/tools/perf/bench/futex-wake-parallel.c
@@ -10,11 +10,11 @@
10/* For the CLR_() macros */ 10/* For the CLR_() macros */
11#include <pthread.h> 11#include <pthread.h>
12 12
13#include "../perf.h" 13#include <signal.h>
14#include "../util/util.h"
15#include "../util/stat.h" 14#include "../util/stat.h"
16#include <subcmd/parse-options.h> 15#include <subcmd/parse-options.h>
17#include "../util/header.h" 16#include <linux/kernel.h>
17#include <errno.h>
18#include "bench.h" 18#include "bench.h"
19#include "futex.h" 19#include "futex.h"
20 20
diff --git a/tools/perf/bench/futex-wake.c b/tools/perf/bench/futex-wake.c
index 877e680b28a8..e978d5610e5f 100644
--- a/tools/perf/bench/futex-wake.c
+++ b/tools/perf/bench/futex-wake.c
@@ -11,11 +11,11 @@
11/* For the CLR_() macros */ 11/* For the CLR_() macros */
12#include <pthread.h> 12#include <pthread.h>
13 13
14#include "../perf.h" 14#include <signal.h>
15#include "../util/util.h"
16#include "../util/stat.h" 15#include "../util/stat.h"
17#include <subcmd/parse-options.h> 16#include <subcmd/parse-options.h>
18#include "../util/header.h" 17#include <linux/kernel.h>
18#include <errno.h>
19#include "bench.h" 19#include "bench.h"
20#include "futex.h" 20#include "futex.h"
21 21