diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-30 13:45:20 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-31 21:24:10 -0400 |
commit | f2a39fe84901df2b3d1bec3459b65cee3e8db57c (patch) | |
tree | 399cb01cdf9a8c771e734ed4344a18840845f9bf /tools/perf/util/annotate.c | |
parent | fa0d98462fae5d4951f22f3ac1090d48c53396d1 (diff) |
perf auxtrace: Uninline functions that touch perf_session
So that we don't carry the session.h include directive in auxtrace.h,
which in turn opens a can of worms of files that were getting all sorts
of things via that include, fix them all.
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-d2d83aovpgri2z75wlitquni@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r-- | tools/perf/util/annotate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index eb3c50de831d..1748f528b6e9 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <errno.h> | 9 | #include <errno.h> |
10 | #include <inttypes.h> | 10 | #include <inttypes.h> |
11 | #include <libgen.h> | 11 | #include <libgen.h> |
12 | #include <stdlib.h> | ||
12 | #include <bpf/bpf.h> | 13 | #include <bpf/bpf.h> |
13 | #include <bpf/btf.h> | 14 | #include <bpf/btf.h> |
14 | #include <bpf/libbpf.h> | 15 | #include <bpf/libbpf.h> |
@@ -20,7 +21,9 @@ | |||
20 | #include "color.h" | 21 | #include "color.h" |
21 | #include "config.h" | 22 | #include "config.h" |
22 | #include "dso.h" | 23 | #include "dso.h" |
24 | #include "env.h" | ||
23 | #include "map.h" | 25 | #include "map.h" |
26 | #include "map_groups.h" | ||
24 | #include "symbol.h" | 27 | #include "symbol.h" |
25 | #include "srcline.h" | 28 | #include "srcline.h" |
26 | #include "units.h" | 29 | #include "units.h" |