Skip to content

Commit c1a604d

Browse files
committed
perf tools: Remove needless perf.h include directive from headers
Its not needed there, add it to the places that need it and were getting it via those headers. 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-5yulx1u16vyd0zmrbg1tjhju@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent f371102 commit c1a604d

21 files changed

Lines changed: 18 additions & 3 deletions

‎tools/perf/builtin-c2c.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "thread.h"
3636
#include "mem2node.h"
3737
#include "symbol.h"
38+
#include "../perf.h"
3839

3940
struct c2c_hists {
4041
struct hists hists;

‎tools/perf/builtin-diff.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* DSOs and symbol information, sort them and produce a diff.
77
*/
88
#include "builtin.h"
9+
#include "perf.h"
910

1011
#include "util/debug.h"
1112
#include "util/event.h"

‎tools/perf/builtin-record.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#include "util/units.h"
4343
#include "util/bpf-event.h"
4444
#include "asm/bug.h"
45+
#include "perf.h"
4546

4647
#include <errno.h>
4748
#include <inttypes.h>

‎tools/perf/builtin-script.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#include <perf/evlist.h>
5454
#include "util/record.h"
5555
#include "util/util.h"
56+
#include "perf.h"
5657

5758
#include <linux/ctype.h>
5859

‎tools/perf/builtin-stat.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
*/
4242

4343
#include "builtin.h"
44+
#include "perf.h"
4445
#include "util/cgroup.h"
4546
#include <subcmd/parse-options.h>
4647
#include "util/parse-events.h"

‎tools/perf/builtin-trace.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include "string2.h"
5252
#include "syscalltbl.h"
5353
#include "rb_resort.h"
54+
#include "../perf.h"
5455

5556
#include <errno.h>
5657
#include <inttypes.h>

‎tools/perf/perf.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* perf top, perf record, perf report, etc.) are started.
99
*/
1010
#include "builtin.h"
11+
#include "perf.h"
1112

1213
#include "util/env.h"
1314
#include <subcmd/exec-cmd.h>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "../../util/top.h"
2323
#include "../../util/thread.h"
2424
#include "../../arch/common.h"
25+
#include "../../perf.h"
2526

2627
#include "../browsers/hists.h"
2728
#include "../helpline.h"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "time-utils.h"
99
#include "../util.h"
1010
#include "../../util/util.h"
11+
#include "../../perf.h"
1112
#include <linux/time64.h>
1213
#include <linux/zalloc.h>
1314

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include "../../builtin.h"
3+
#include "../../perf.h"
34
#include "../../util/sort.h"
45
#include "../../util/util.h"
56
#include "../../util/hist.h"

0 commit comments

Comments
 (0)