perf tools: Remove poll.h and wait.h from util.h
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 4208735d8de58f1cbc2e0009d87514ce06681e5a Gitweb: http://git.kernel.org/tip/4208735d8de58f1cbc2e0009d87514ce06681e5a Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 19 Apr 2017 19:06:30 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Mon, 24 Apr 2017 13:43:34 -0300
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.
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/arch/x86/tests/intel-cqm.c | 1 + tools/perf/builtin-ftrace.c | 1 + tools/perf/builtin-kvm.c | 1 + tools/perf/builtin-record.c | 2 ++ tools/perf/builtin-stat.c | 1 + tools/perf/builtin-trace.c | 1 + tools/perf/tests/builtin-test.c | 1 + tools/perf/tests/event-times.c | 1 + tools/perf/util/debug.c | 1 + tools/perf/util/help-unknown-cmd.c | 1 + tools/perf/util/llvm-utils.c | 1 + tools/perf/util/util.h | 2 -- 12 files changed, 12 insertions(+), 2 deletions(-)
tools/perf/arch/x86/tests/intel-cqm.c +1 -0
@@ -8,6 +8,7 @@#include <signal.h> #include <sys/mman.h> +#include <sys/wait.h> #include <errno.h> #include <string.h>
tools/perf/builtin-ftrace.c +1 -0
@@ -13,6 +13,7 @@#include <unistd.h> #include <signal.h> #include <fcntl.h> +#include <poll.h> #include "debug.h" #include <subcmd/parse-options.h>
tools/perf/builtin-kvm.c +1 -0
@@ -30,6 +30,7 @@#include <linux/time64.h> #include <errno.h> #include <inttypes.h> +#include <poll.h> #include <termios.h> #include <semaphore.h> #include <signal.h>
tools/perf/builtin-record.c +2 -0
@@ -44,10 +44,12 @@#include <errno.h> #include <inttypes.h> +#include <poll.h> #include <unistd.h> #include <sched.h> #include <signal.h> #include <sys/mman.h> +#include <sys/wait.h> #include <asm/bug.h> #include <linux/time64.h>
tools/perf/builtin-stat.c +1 -0
@@ -78,6 +78,7 @@#include <math.h> #include <sys/types.h> #include <sys/stat.h> +#include <sys/wait.h> #include <unistd.h> #include "sane_ctype.h"
tools/perf/builtin-trace.c +1 -0
@@ -45,6 +45,7 @@#include <errno.h> #include <inttypes.h> #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */ +#include <poll.h> #include <signal.h> #include <stdlib.h> #include <string.h>
tools/perf/tests/builtin-test.c +1 -0
@@ -6,6 +6,7 @@#include <errno.h> #include <unistd.h> #include <string.h> +#include <sys/wait.h> #include "builtin.h" #include "hist.h" #include "intlist.h"
tools/perf/tests/event-times.c +1 -0
@@ -2,6 +2,7 @@#include <errno.h> #include <inttypes.h> #include <string.h> +#include <sys/wait.h> #include "tests.h" #include "evlist.h" #include "evsel.h"
tools/perf/util/debug.c +1 -0
@@ -6,6 +6,7 @@#include <string.h> #include <stdarg.h> #include <stdio.h> +#include <sys/wait.h> #include <api/debug.h> #include <linux/time64.h> #ifdef HAVE_BACKTRACE_SUPPORT
tools/perf/util/help-unknown-cmd.c +1 -0
@@ -1,5 +1,6 @@#include "cache.h" #include "config.h" +#include <poll.h> #include <stdio.h> #include <subcmd/help.h> #include "../builtin.h"
tools/perf/util/llvm-utils.c +1 -0
@@ -12,6 +12,7 @@#include "llvm-utils.h" #include "config.h" #include "util.h" +#include <sys/wait.h> #define CLANG_BPF_CMD_DEFAULT_TEMPLATE \ "$CLANG_EXEC -D__KERNEL__ -D__NR_CPUS__=$NR_CPUS "\
tools/perf/util/util.h +0 -2
@@ -12,8 +12,6 @@#include <stddef.h> #include <stdlib.h> #include <stdarg.h> -#include <sys/wait.h> -#include <poll.h> #include <linux/types.h> extern char buildid_dir[];