perf bench: Disentangle headers
Subsystems (2)
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 9c304f6c715f1849bb5b0d450a600dc731a80bda Gitweb: http://git.kernel.org/tip/9c304f6c715f1849bb5b0d450a600dc731a80bda Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 7 Jul 2016 11:01:46 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 12 Jul 2016 15:19:54 -0300
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 <[email protected]>
Cc David Ahern <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc Hitoshi Mitake <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/bench/futex-hash.c | 8 ++++++-- tools/perf/bench/futex-lock-pi.c | 6 +++--- tools/perf/bench/futex-requeue.c | 6 +++--- tools/perf/bench/futex-wake-parallel.c | 6 +++--- tools/perf/bench/futex-wake.c | 6 +++--- 5 files changed, 18 insertions(+), 14 deletions(-)
tools/perf/bench/futex-hash.c +6 -2
@@ -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"
tools/perf/bench/futex-lock-pi.c +3 -3
@@ -5,11 +5,11 @@/* For the CLR_() macros */ #include <pthread.h> -#include "../perf.h" -#include "../util/util.h" +#include <signal.h> #include "../util/stat.h" #include <subcmd/parse-options.h> -#include "../util/header.h" +#include <linux/kernel.h> +#include <errno.h> #include "bench.h" #include "futex.h"
tools/perf/bench/futex-requeue.c +3 -3
@@ -11,11 +11,11 @@/* For the CLR_() macros */ #include <pthread.h> -#include "../perf.h" -#include "../util/util.h" +#include <signal.h> #include "../util/stat.h" #include <subcmd/parse-options.h> -#include "../util/header.h" +#include <linux/kernel.h> +#include <errno.h> #include "bench.h" #include "futex.h"
tools/perf/bench/futex-wake-parallel.c +3 -3
@@ -10,11 +10,11 @@/* For the CLR_() macros */ #include <pthread.h> -#include "../perf.h" -#include "../util/util.h" +#include <signal.h> #include "../util/stat.h" #include <subcmd/parse-options.h> -#include "../util/header.h" +#include <linux/kernel.h> +#include <errno.h> #include "bench.h" #include "futex.h"
tools/perf/bench/futex-wake.c +3 -3
@@ -11,11 +11,11 @@/* For the CLR_() macros */ #include <pthread.h> -#include "../perf.h" -#include "../util/util.h" +#include <signal.h> #include "../util/stat.h" #include <subcmd/parse-options.h> -#include "../util/header.h" +#include <linux/kernel.h> +#include <errno.h> #include "bench.h" #include "futex.h"