diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-22 16:10:08 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-26 10:58:29 -0400 |
commit | 97b9d866a66cf9884cea623cde3300073815873d (patch) | |
tree | 8304e2cfb00015e628a7627dd70f2cad6499a4c6 | |
parent | 125009026bfc9ec929975d35344bf69d2c636e95 (diff) |
perf srcline: Add missing srcline.h header to files needing its defs
When srcline was introduced it wrongly added the include to util/sort.h,
even with that header not needing the definitions it provides, fix it by
adding it to the places that need it as a pre patch to remove srcline.h
from sort.h.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-shuebppedtye8hrgxk15qe3x@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/builtin-diff.c | 2 | ||||
-rw-r--r-- | tools/perf/builtin-report.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-script.c | 1 | ||||
-rw-r--r-- | tools/perf/util/annotate.c | 2 | ||||
-rw-r--r-- | tools/perf/util/machine.c | 2 | ||||
-rw-r--r-- | tools/perf/util/sort.c | 1 |
6 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index e91c0d798181..51c37e53b3d8 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include "util/session.h" | 15 | #include "util/session.h" |
16 | #include "util/tool.h" | 16 | #include "util/tool.h" |
17 | #include "util/sort.h" | 17 | #include "util/sort.h" |
18 | #include "util/srcline.h" | ||
18 | #include "util/symbol.h" | 19 | #include "util/symbol.h" |
19 | #include "util/data.h" | 20 | #include "util/data.h" |
20 | #include "util/config.h" | 21 | #include "util/config.h" |
@@ -22,6 +23,7 @@ | |||
22 | #include "util/annotate.h" | 23 | #include "util/annotate.h" |
23 | #include "util/map.h" | 24 | #include "util/map.h" |
24 | #include <linux/zalloc.h> | 25 | #include <linux/zalloc.h> |
26 | #include <subcmd/parse-options.h> | ||
25 | 27 | ||
26 | #include <errno.h> | 28 | #include <errno.h> |
27 | #include <inttypes.h> | 29 | #include <inttypes.h> |
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 79dfb1139f94..318b0b95c14c 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "util/evswitch.h" | 28 | #include "util/evswitch.h" |
29 | #include "util/header.h" | 29 | #include "util/header.h" |
30 | #include "util/session.h" | 30 | #include "util/session.h" |
31 | #include "util/srcline.h" | ||
31 | #include "util/tool.h" | 32 | #include "util/tool.h" |
32 | 33 | ||
33 | #include <subcmd/parse-options.h> | 34 | #include <subcmd/parse-options.h> |
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index ee05621d3bd6..6f389b33fbe5 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include "util/session.h" | 11 | #include "util/session.h" |
12 | #include "util/tool.h" | 12 | #include "util/tool.h" |
13 | #include "util/map.h" | 13 | #include "util/map.h" |
14 | #include "util/srcline.h" | ||
14 | #include "util/symbol.h" | 15 | #include "util/symbol.h" |
15 | #include "util/thread.h" | 16 | #include "util/thread.h" |
16 | #include "util/trace-event.h" | 17 | #include "util/trace-event.h" |
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index e0518dc4c4d2..3bd1691f0be7 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "cache.h" | 22 | #include "cache.h" |
23 | #include "map.h" | 23 | #include "map.h" |
24 | #include "symbol.h" | 24 | #include "symbol.h" |
25 | #include "srcline.h" | ||
25 | #include "units.h" | 26 | #include "units.h" |
26 | #include "debug.h" | 27 | #include "debug.h" |
27 | #include "annotate.h" | 28 | #include "annotate.h" |
@@ -37,6 +38,7 @@ | |||
37 | #include <linux/kernel.h> | 38 | #include <linux/kernel.h> |
38 | #include <linux/string.h> | 39 | #include <linux/string.h> |
39 | #include <bpf/libbpf.h> | 40 | #include <bpf/libbpf.h> |
41 | #include <subcmd/parse-options.h> | ||
40 | 42 | ||
41 | /* FIXME: For the HE_COLORSET */ | 43 | /* FIXME: For the HE_COLORSET */ |
42 | #include "ui/browser.h" | 44 | #include "ui/browser.h" |
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index f7c1a7e6c4ba..47430afd3c2d 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c | |||
@@ -10,11 +10,13 @@ | |||
10 | #include "hist.h" | 10 | #include "hist.h" |
11 | #include "machine.h" | 11 | #include "machine.h" |
12 | #include "map.h" | 12 | #include "map.h" |
13 | #include "srcline.h" | ||
13 | #include "symbol.h" | 14 | #include "symbol.h" |
14 | #include "sort.h" | 15 | #include "sort.h" |
15 | #include "strlist.h" | 16 | #include "strlist.h" |
16 | #include "target.h" | 17 | #include "target.h" |
17 | #include "thread.h" | 18 | #include "thread.h" |
19 | #include "util.h" | ||
18 | #include "vdso.h" | 20 | #include "vdso.h" |
19 | #include <stdbool.h> | 21 | #include <stdbool.h> |
20 | #include <sys/types.h> | 22 | #include <sys/types.h> |
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 904ff4b2f57f..c522bdde3f71 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include "thread.h" | 13 | #include "thread.h" |
14 | #include "evsel.h" | 14 | #include "evsel.h" |
15 | #include "evlist.h" | 15 | #include "evlist.h" |
16 | #include "srcline.h" | ||
16 | #include "strlist.h" | 17 | #include "strlist.h" |
17 | #include "strbuf.h" | 18 | #include "strbuf.h" |
18 | #include <traceevent/event-parse.h> | 19 | #include <traceevent/event-parse.h> |