Skip to content

Commit 7cadca8

Browse files
committed
perf hist: Remove symbol.h from hist.h, just fwd decls are needed
To reduce the includes dependencies. 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-cmvg5ght75mmfg1efeyna9rn@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 2f2ae23 commit 7cadca8

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎tools/perf/ui/gtk/annotate.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "util/annotate.h"
66
#include "util/evsel.h"
77
#include "util/map.h"
8+
#include "util/symbol.h"
89
#include "ui/helpline.h"
910
#include <inttypes.h>
1011
#include <signal.h>

‎tools/perf/util/auxtrace.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include "pmu.h"
4242
#include "evsel.h"
4343
#include "cpumap.h"
44+
#include "symbol.h"
4445
#include "thread_map.h"
4546
#include "asm/bug.h"
4647
#include "auxtrace.h"

‎tools/perf/util/callchain.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "map.h"
2727
#include "callchain.h"
2828
#include "branch.h"
29+
#include "symbol.h"
2930

3031
#define CALLCHAIN_PARAM_DEFAULT \
3132
.mode = CHAIN_GRAPH_ABS, \

‎tools/perf/util/hist.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
#include "evsel.h"
99
#include "header.h"
1010
#include "color.h"
11-
#include "symbol.h"
1211
#include "ui/progress.h"
1312

1413
struct hist_entry;
1514
struct hist_entry_ops;
1615
struct addr_location;
16+
struct mem_info;
17+
struct branch_info;
1718
struct symbol;
1819

1920
enum hist_filter {

0 commit comments

Comments
 (0)