diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 18:06:30 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-24 12:43:34 -0400 |
commit | 4208735d8de58f1cbc2e0009d87514ce06681e5a (patch) | |
tree | 7203b8cf19a7b3561637c21e19cdcb79cf76a154 /tools/perf | |
parent | 7a8ef4c4b5fd5c578da4dadbcb1c5da650426c74 (diff) |
perf tools: Remove poll.h and wait.h from util.h
Not needed in this header, added to the places that need poll(), wait()
and a few other prototypes.
Link: http://lkml.kernel.org/n/tip-i39c7b6xmo1vwd9wxp6fmkl0@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/arch/x86/tests/intel-cqm.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-ftrace.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-kvm.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-record.c | 2 | ||||
-rw-r--r-- | tools/perf/builtin-stat.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-trace.c | 1 | ||||
-rw-r--r-- | tools/perf/tests/builtin-test.c | 1 | ||||
-rw-r--r-- | tools/perf/tests/event-times.c | 1 | ||||
-rw-r--r-- | tools/perf/util/debug.c | 1 | ||||
-rw-r--r-- | tools/perf/util/help-unknown-cmd.c | 1 | ||||
-rw-r--r-- | tools/perf/util/llvm-utils.c | 1 | ||||
-rw-r--r-- | tools/perf/util/util.h | 2 |
12 files changed, 12 insertions, 2 deletions
diff --git a/tools/perf/arch/x86/tests/intel-cqm.c b/tools/perf/arch/x86/tests/intel-cqm.c index befde6708c33..f9713a71d77e 100644 --- a/tools/perf/arch/x86/tests/intel-cqm.c +++ b/tools/perf/arch/x86/tests/intel-cqm.c | |||
@@ -8,6 +8,7 @@ | |||
8 | 8 | ||
9 | #include <signal.h> | 9 | #include <signal.h> |
10 | #include <sys/mman.h> | 10 | #include <sys/mman.h> |
11 | #include <sys/wait.h> | ||
11 | #include <errno.h> | 12 | #include <errno.h> |
12 | #include <string.h> | 13 | #include <string.h> |
13 | 14 | ||
diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index 0f34ab7a9ec1..9e0b35cd0eea 100644 --- a/tools/perf/builtin-ftrace.c +++ b/tools/perf/builtin-ftrace.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <unistd.h> | 13 | #include <unistd.h> |
14 | #include <signal.h> | 14 | #include <signal.h> |
15 | #include <fcntl.h> | 15 | #include <fcntl.h> |
16 | #include <poll.h> | ||
16 | 17 | ||
17 | #include "debug.h" | 18 | #include "debug.h" |
18 | #include <subcmd/parse-options.h> | 19 | #include <subcmd/parse-options.h> |
diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index 129af3e9c728..f309c3773522 100644 --- a/tools/perf/builtin-kvm.c +++ b/tools/perf/builtin-kvm.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/time64.h> | 30 | #include <linux/time64.h> |
31 | #include <errno.h> | 31 | #include <errno.h> |
32 | #include <inttypes.h> | 32 | #include <inttypes.h> |
33 | #include <poll.h> | ||
33 | #include <termios.h> | 34 | #include <termios.h> |
34 | #include <semaphore.h> | 35 | #include <semaphore.h> |
35 | #include <signal.h> | 36 | #include <signal.h> |
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 32a9a68d38a2..ee7d0a82ccd0 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -44,10 +44,12 @@ | |||
44 | 44 | ||
45 | #include <errno.h> | 45 | #include <errno.h> |
46 | #include <inttypes.h> | 46 | #include <inttypes.h> |
47 | #include <poll.h> | ||
47 | #include <unistd.h> | 48 | #include <unistd.h> |
48 | #include <sched.h> | 49 | #include <sched.h> |
49 | #include <signal.h> | 50 | #include <signal.h> |
50 | #include <sys/mman.h> | 51 | #include <sys/mman.h> |
52 | #include <sys/wait.h> | ||
51 | #include <asm/bug.h> | 53 | #include <asm/bug.h> |
52 | #include <linux/time64.h> | 54 | #include <linux/time64.h> |
53 | 55 | ||
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index eb3cc0b9a9e4..a935b5023732 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -78,6 +78,7 @@ | |||
78 | #include <math.h> | 78 | #include <math.h> |
79 | #include <sys/types.h> | 79 | #include <sys/types.h> |
80 | #include <sys/stat.h> | 80 | #include <sys/stat.h> |
81 | #include <sys/wait.h> | ||
81 | #include <unistd.h> | 82 | #include <unistd.h> |
82 | 83 | ||
83 | #include "sane_ctype.h" | 84 | #include "sane_ctype.h" |
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index ef3613f2fe6a..eaa66fb57347 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <errno.h> | 45 | #include <errno.h> |
46 | #include <inttypes.h> | 46 | #include <inttypes.h> |
47 | #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */ | 47 | #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */ |
48 | #include <poll.h> | ||
48 | #include <signal.h> | 49 | #include <signal.h> |
49 | #include <stdlib.h> | 50 | #include <stdlib.h> |
50 | #include <string.h> | 51 | #include <string.h> |
diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c index 552fd9aca08d..9e08d297f1a9 100644 --- a/tools/perf/tests/builtin-test.c +++ b/tools/perf/tests/builtin-test.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <errno.h> | 6 | #include <errno.h> |
7 | #include <unistd.h> | 7 | #include <unistd.h> |
8 | #include <string.h> | 8 | #include <string.h> |
9 | #include <sys/wait.h> | ||
9 | #include "builtin.h" | 10 | #include "builtin.h" |
10 | #include "hist.h" | 11 | #include "hist.h" |
11 | #include "intlist.h" | 12 | #include "intlist.h" |
diff --git a/tools/perf/tests/event-times.c b/tools/perf/tests/event-times.c index 4683514751d6..634f20c631d8 100644 --- a/tools/perf/tests/event-times.c +++ b/tools/perf/tests/event-times.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include <errno.h> | 2 | #include <errno.h> |
3 | #include <inttypes.h> | 3 | #include <inttypes.h> |
4 | #include <string.h> | 4 | #include <string.h> |
5 | #include <sys/wait.h> | ||
5 | #include "tests.h" | 6 | #include "tests.h" |
6 | #include "evlist.h" | 7 | #include "evlist.h" |
7 | #include "evsel.h" | 8 | #include "evsel.h" |
diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c index 9eaf86f4003b..a5b3777ffee6 100644 --- a/tools/perf/util/debug.c +++ b/tools/perf/util/debug.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <string.h> | 6 | #include <string.h> |
7 | #include <stdarg.h> | 7 | #include <stdarg.h> |
8 | #include <stdio.h> | 8 | #include <stdio.h> |
9 | #include <sys/wait.h> | ||
9 | #include <api/debug.h> | 10 | #include <api/debug.h> |
10 | #include <linux/time64.h> | 11 | #include <linux/time64.h> |
11 | #ifdef HAVE_BACKTRACE_SUPPORT | 12 | #ifdef HAVE_BACKTRACE_SUPPORT |
diff --git a/tools/perf/util/help-unknown-cmd.c b/tools/perf/util/help-unknown-cmd.c index 34201440ac03..1c88ad6425b8 100644 --- a/tools/perf/util/help-unknown-cmd.c +++ b/tools/perf/util/help-unknown-cmd.c | |||
@@ -1,5 +1,6 @@ | |||
1 | #include "cache.h" | 1 | #include "cache.h" |
2 | #include "config.h" | 2 | #include "config.h" |
3 | #include <poll.h> | ||
3 | #include <stdio.h> | 4 | #include <stdio.h> |
4 | #include <subcmd/help.h> | 5 | #include <subcmd/help.h> |
5 | #include "../builtin.h" | 6 | #include "../builtin.h" |
diff --git a/tools/perf/util/llvm-utils.c b/tools/perf/util/llvm-utils.c index 824356488ce6..c6a15f204c03 100644 --- a/tools/perf/util/llvm-utils.c +++ b/tools/perf/util/llvm-utils.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include "llvm-utils.h" | 12 | #include "llvm-utils.h" |
13 | #include "config.h" | 13 | #include "config.h" |
14 | #include "util.h" | 14 | #include "util.h" |
15 | #include <sys/wait.h> | ||
15 | 16 | ||
16 | #define CLANG_BPF_CMD_DEFAULT_TEMPLATE \ | 17 | #define CLANG_BPF_CMD_DEFAULT_TEMPLATE \ |
17 | "$CLANG_EXEC -D__KERNEL__ -D__NR_CPUS__=$NR_CPUS "\ | 18 | "$CLANG_EXEC -D__KERNEL__ -D__NR_CPUS__=$NR_CPUS "\ |
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index bd883f25b76e..3852b6d3270a 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -12,8 +12,6 @@ | |||
12 | #include <stddef.h> | 12 | #include <stddef.h> |
13 | #include <stdlib.h> | 13 | #include <stdlib.h> |
14 | #include <stdarg.h> | 14 | #include <stdarg.h> |
15 | #include <sys/wait.h> | ||
16 | #include <poll.h> | ||
17 | #include <linux/types.h> | 15 | #include <linux/types.h> |
18 | 16 | ||
19 | extern char buildid_dir[]; | 17 | extern char buildid_dir[]; |