Skip to content

Commit daecf9e

Browse files
committed
perf tools: Add missing include for symbols.h
Several places were using definitions found in symbols.h but not including it, getting it by sheer luck from some other headers that now are in the process of removing that include because they don't need it or because simply having struct forward declarations is enough, fix it. 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-xbcvvx296d70kpg9wb0qmeq9@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 7cadca8 commit daecf9e

16 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎tools/perf/builtin-c2c.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "ui/browsers/hists.h"
3434
#include "thread.h"
3535
#include "mem2node.h"
36+
#include "symbol.h"
3637

3738
struct c2c_hists {
3839
struct hists hists;

‎tools/perf/builtin-inject.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "util/data.h"
2121
#include "util/auxtrace.h"
2222
#include "util/jit.h"
23+
#include "util/symbol.h"
2324
#include "util/thread.h"
2425

2526
#include <subcmd/parse-options.h>

‎tools/perf/builtin-trace.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <subcmd/exec-cmd.h>
3131
#include "util/machine.h"
3232
#include "util/map.h"
33+
#include "util/symbol.h"
3334
#include "util/path.h"
3435
#include "util/session.h"
3536
#include "util/thread.h"

‎tools/perf/tests/code-reading.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "cpumap.h"
1717
#include "machine.h"
1818
#include "map.h"
19+
#include "symbol.h"
1920
#include "event.h"
2021
#include "thread.h"
2122

‎tools/perf/tests/dwarf-unwind.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "../util/unwind.h"
1111
#include "perf_regs.h"
1212
#include "map.h"
13+
#include "symbol.h"
1314
#include "thread.h"
1415
#include "callchain.h"
1516

‎tools/perf/ui/browsers/hists.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "../../util/evlist.h"
1313
#include "../../util/hist.h"
1414
#include "../../util/map.h"
15+
#include "../../util/symbol.h"
1516
#include "../../util/pstack.h"
1617
#include "../../util/sort.h"
1718
#include "../../util/util.h"

‎tools/perf/ui/stdio/hist.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "../../util/hist.h"
77
#include "../../util/map.h"
88
#include "../../util/map_groups.h"
9+
#include "../../util/symbol.h"
910
#include "../../util/sort.h"
1011
#include "../../util/evsel.h"
1112
#include "../../util/srcline.h"

‎tools/perf/util/event.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "thread_map.h"
2323
#include "sane_ctype.h"
2424
#include "map.h"
25+
#include "symbol.h"
2526
#include "symbol/kallsyms.h"
2627
#include "asm/bug.h"
2728
#include "stat.h"

‎tools/perf/util/hist.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "evsel.h"
1212
#include "annotate.h"
1313
#include "srcline.h"
14+
#include "symbol.h"
1415
#include "thread.h"
1516
#include "ui/progress.h"
1617
#include <errno.h>

‎tools/perf/util/intel-bts.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "evlist.h"
2929
#include "machine.h"
3030
#include "map.h"
31+
#include "symbol.h"
3132
#include "session.h"
3233
#include "util.h"
3334
#include "thread.h"

0 commit comments

Comments
 (0)