diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-04-20 04:07:18 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-04-20 04:07:18 -0400 |
commit | 07590a7d4030c159b9a0d7171f81049a9ce23245 (patch) | |
tree | 1aa05455a4eacca2ca9dc3b228f19addf7bfd395 /tools/perf/builtin-script.c | |
parent | afa7a17f3aafb64647ba4cd38e20f3d678c7949b (diff) | |
parent | 1b5ad16c7aa7177512ce141e345ff36b9f1a6136 (diff) |
Merge tag 'perf-core-for-mingo-4.12-20170419' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core cleanups from Arnaldo Carvalho de Melo:
- Introduce new header files out of the hodge-podge that util/util.h
became, trying to disentangle the includes hell that all C projects
end up growing. This should help in build times, as changes to
seemingly unrelated files (util.h included tons of headers) won't
trigger a rebuild of most object files.
- Use equivalent facilities found in the kernel source code base
originated tools/include/ header files, such as __stringify(),
ARRAY_SIZE, that has extra checks (__must_be_array()), etc.
- For that get some more files from the kernel sources, like
include/linux/bug.h, some just with the bits needed at this time.
- Use the headers where facilities declared in them are used, such
as PRIxu(32,64) macros (inttypes.h), errno defines (errno.h), etc.
- Remove various leftovers from the initial code base we copied from
git.git: FLEX_ARRAY, etc.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 2dab70fba2ba..fe1dcd4f2c6d 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -21,14 +21,22 @@ | |||
21 | #include "util/cpumap.h" | 21 | #include "util/cpumap.h" |
22 | #include "util/thread_map.h" | 22 | #include "util/thread_map.h" |
23 | #include "util/stat.h" | 23 | #include "util/stat.h" |
24 | #include "util/string2.h" | ||
24 | #include "util/thread-stack.h" | 25 | #include "util/thread-stack.h" |
25 | #include "util/time-utils.h" | 26 | #include "util/time-utils.h" |
27 | #include "print_binary.h" | ||
26 | #include <linux/bitmap.h> | 28 | #include <linux/bitmap.h> |
29 | #include <linux/kernel.h> | ||
27 | #include <linux/stringify.h> | 30 | #include <linux/stringify.h> |
28 | #include <linux/time64.h> | 31 | #include <linux/time64.h> |
29 | #include "asm/bug.h" | 32 | #include "asm/bug.h" |
30 | #include "util/mem-events.h" | 33 | #include "util/mem-events.h" |
31 | #include "util/dump-insn.h" | 34 | #include "util/dump-insn.h" |
35 | #include <dirent.h> | ||
36 | #include <errno.h> | ||
37 | #include <inttypes.h> | ||
38 | |||
39 | #include "sane_ctype.h" | ||
32 | 40 | ||
33 | static char const *script_name; | 41 | static char const *script_name; |
34 | static char const *generate_script_lang; | 42 | static char const *generate_script_lang; |