Skip to content

Commit

Permalink
perf bench: Disentangle headers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo committed Jul 12, 2016
1 parent ab6526b commit 9c304f6
Showing 5 changed files with 18 additions and 14 deletions.
8 changes: 6 additions & 2 deletions tools/perf/bench/futex-hash.c
Original file line number Diff line number Diff line change
@@ -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"

6 changes: 3 additions & 3 deletions tools/perf/bench/futex-lock-pi.c
Original file line number Diff line number Diff line change
@@ -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"

6 changes: 3 additions & 3 deletions tools/perf/bench/futex-requeue.c
Original file line number Diff line number Diff line change
@@ -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"

6 changes: 3 additions & 3 deletions tools/perf/bench/futex-wake-parallel.c
Original file line number Diff line number Diff line change
@@ -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"

6 changes: 3 additions & 3 deletions tools/perf/bench/futex-wake.c
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 9c304f6

Please sign in to comment.