Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+12 -2
+1
tools/perf/arch/x86/tests/intel-cqm.c
··· 8 8 9 9 #include <signal.h> 10 10 #include <sys/mman.h> 11 + #include <sys/wait.h> 11 12 #include <errno.h> 12 13 #include <string.h> 13 14
+1
tools/perf/builtin-ftrace.c
··· 13 13 #include <unistd.h> 14 14 #include <signal.h> 15 15 #include <fcntl.h> 16 + #include <poll.h> 16 17 17 18 #include "debug.h" 18 19 #include <subcmd/parse-options.h>
+1
tools/perf/builtin-kvm.c
··· 30 30 #include <linux/time64.h> 31 31 #include <errno.h> 32 32 #include <inttypes.h> 33 + #include <poll.h> 33 34 #include <termios.h> 34 35 #include <semaphore.h> 35 36 #include <signal.h>
+2
tools/perf/builtin-record.c
··· 44 44 45 45 #include <errno.h> 46 46 #include <inttypes.h> 47 + #include <poll.h> 47 48 #include <unistd.h> 48 49 #include <sched.h> 49 50 #include <signal.h> 50 51 #include <sys/mman.h> 52 + #include <sys/wait.h> 51 53 #include <asm/bug.h> 52 54 #include <linux/time64.h> 53 55
+1
tools/perf/builtin-stat.c
··· 78 78 #include <math.h> 79 79 #include <sys/types.h> 80 80 #include <sys/stat.h> 81 + #include <sys/wait.h> 81 82 #include <unistd.h> 82 83 83 84 #include "sane_ctype.h"
+1
tools/perf/builtin-trace.c
··· 45 45 #include <errno.h> 46 46 #include <inttypes.h> 47 47 #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */ 48 + #include <poll.h> 48 49 #include <signal.h> 49 50 #include <stdlib.h> 50 51 #include <string.h>
+1
tools/perf/tests/builtin-test.c
··· 6 6 #include <errno.h> 7 7 #include <unistd.h> 8 8 #include <string.h> 9 + #include <sys/wait.h> 9 10 #include "builtin.h" 10 11 #include "hist.h" 11 12 #include "intlist.h"
+1
tools/perf/tests/event-times.c
··· 2 2 #include <errno.h> 3 3 #include <inttypes.h> 4 4 #include <string.h> 5 + #include <sys/wait.h> 5 6 #include "tests.h" 6 7 #include "evlist.h" 7 8 #include "evsel.h"
+1
tools/perf/util/debug.c
··· 6 6 #include <string.h> 7 7 #include <stdarg.h> 8 8 #include <stdio.h> 9 + #include <sys/wait.h> 9 10 #include <api/debug.h> 10 11 #include <linux/time64.h> 11 12 #ifdef HAVE_BACKTRACE_SUPPORT
+1
tools/perf/util/help-unknown-cmd.c
··· 1 1 #include "cache.h" 2 2 #include "config.h" 3 + #include <poll.h> 3 4 #include <stdio.h> 4 5 #include <subcmd/help.h> 5 6 #include "../builtin.h"
+1
tools/perf/util/llvm-utils.c
··· 12 12 #include "llvm-utils.h" 13 13 #include "config.h" 14 14 #include "util.h" 15 + #include <sys/wait.h> 15 16 16 17 #define CLANG_BPF_CMD_DEFAULT_TEMPLATE \ 17 18 "$CLANG_EXEC -D__KERNEL__ -D__NR_CPUS__=$NR_CPUS "\
-2
tools/perf/util/util.h
··· 12 12 #include <stddef.h> 13 13 #include <stdlib.h> 14 14 #include <stdarg.h> 15 - #include <sys/wait.h> 16 - #include <poll.h> 17 15 #include <linux/types.h> 18 16 19 17 extern char buildid_dir[];