perf tools: Remove include dirent.h from util.h
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 76b31a29ddaf2fa5f0a70458c214bed02a4a70e9 Gitweb: http://git.kernel.org/tip/76b31a29ddaf2fa5f0a70458c214bed02a4a70e9 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 18 Apr 2017 12:26:44 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 19 Apr 2017 13:01:55 -0300
perf tools: Remove include dirent.h from util.h
The files using the dirent.h routines should instead include it, reducing the includes hell that lead to longer build times.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[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/builtin-script.c | 1 + tools/perf/tests/dso-data.c | 1 + tools/perf/tests/parse-events.c | 1 + tools/perf/ui/browsers/hists.c | 1 + tools/perf/util/build-id.c | 1 + tools/perf/util/cpumap.c | 1 + tools/perf/util/event.c | 1 + tools/perf/util/machine.c | 1 + tools/perf/util/parse-events.c | 1 + tools/perf/util/util.c | 1 + tools/perf/util/util.h | 2 +- 11 files changed, 11 insertions(+), 1 deletion(-)
tools/perf/builtin-script.c +1 -0
@@ -32,6 +32,7 @@#include "asm/bug.h" #include "util/mem-events.h" #include "util/dump-insn.h" +#include <dirent.h> #include <errno.h> #include <inttypes.h>
tools/perf/tests/dso-data.c +1 -0
@@ -1,3 +1,4 @@ +#include <dirent.h> #include <stdlib.h> #include <linux/kernel.h> #include <linux/types.h>
tools/perf/tests/parse-events.c +1 -0
@@ -5,6 +5,7 @@#include "tests.h" #include "debug.h" #include "util.h" +#include <dirent.h> #include <errno.h> #include <linux/kernel.h> #include <linux/hw_breakpoint.h>
tools/perf/ui/browsers/hists.c +1 -0
@@ -1,3 +1,4 @@ +#include <dirent.h> #include <errno.h> #include <inttypes.h> #include <stdio.h>
tools/perf/util/build-id.c +1 -0
@@ -7,6 +7,7 @@* Copyright (C) 2009, 2010 Arnaldo Carvalho de Melo <[email protected]> */ #include "util.h" +#include <dirent.h> #include <errno.h> #include <stdio.h> #include "build-id.h"
tools/perf/util/cpumap.c +1 -0
@@ -3,6 +3,7 @@#include "../perf.h" #include "cpumap.h" #include <assert.h> +#include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <linux/bitmap.h>
tools/perf/util/event.c +1 -0
@@ -1,3 +1,4 @@ +#include <dirent.h> #include <errno.h> #include <inttypes.h> #include <linux/kernel.h>
tools/perf/util/machine.c +1 -0
@@ -1,3 +1,4 @@ +#include <dirent.h> #include <errno.h> #include <inttypes.h> #include "callchain.h"
tools/perf/util/parse-events.c +1 -0
@@ -1,5 +1,6 @@#include <linux/hw_breakpoint.h> #include <linux/err.h> +#include <dirent.h> #include <errno.h> #include "term.h" #include "../perf.h"
tools/perf/util/util.c +1 -0
@@ -7,6 +7,7 @@#ifdef HAVE_BACKTRACE_SUPPORT #include <execinfo.h> #endif +#include <dirent.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h>
tools/perf/util/util.h +1 -1
@@ -20,7 +20,6 @@#include <limits.h> #include <sys/param.h> #include <sys/types.h> -#include <dirent.h> #include <sys/time.h> #include <time.h> #include <signal.h>
@@ -82,6 +81,7 @@ static inline void *zalloc(size_t size)#define zfree (ptr) ({ free(*ptr); *ptr = NULL; }) +struct dirent ;struct strlist ;int mkdir_p (char *path,mode_t mode);