Skip to content

Commit b420902

Browse files
committed
perf tools: Remove debug.h from header files not needing it
And fix the fallout, adding it to places that must have it since they use its definitions. 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-1s3jel4i26chq2g0lydoz7i3@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 0ac25fd commit b420902

23 files changed

Lines changed: 24 additions & 3 deletions

‎tools/perf/arch/arm/util/auxtrace.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/zalloc.h>
1010

1111
#include "../../util/auxtrace.h"
12+
#include "../../util/debug.h"
1213
#include "../../util/evlist.h"
1314
#include "../../util/pmu.h"
1415
#include "cs-etm.h"

‎tools/perf/arch/arm/util/cs-etm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/zalloc.h>
1616

1717
#include "cs-etm.h"
18+
#include "../../util/debug.h"
1819
#include "../../util/record.h"
1920
#include "../../util/auxtrace.h"
2021
#include "../../util/cpumap.h"

‎tools/perf/arch/x86/tests/perf-time-to-tsc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <perf/cpumap.h>
1010
#include <perf/evlist.h>
1111

12+
#include "debug.h"
1213
#include "parse-events.h"
1314
#include "evlist.h"
1415
#include "evsel.h"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <perf/cpumap.h>
1212
#include <perf/evlist.h>
1313

14+
#include "debug.h"
1415
#include "parse-events.h"
1516
#include "evlist.h"
1617
#include "evsel.h"

‎tools/perf/tests/keep-tracking.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <perf/cpumap.h>
66
#include <perf/evlist.h>
77

8+
#include "debug.h"
89
#include "parse-events.h"
910
#include "evlist.h"
1011
#include "evsel.h"

‎tools/perf/tests/mmap-basic.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <pthread.h>
66
#include <perf/cpumap.h>
77

8+
#include "debug.h"
89
#include "evlist.h"
910
#include "evsel.h"
1011
#include "thread_map.h"

‎tools/perf/tests/sw-clock.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
#include <stdlib.h>
66
#include <signal.h>
77
#include <sys/mman.h>
8+
#include <linux/string.h>
89

910
#include "tests.h"
11+
#include "util/debug.h"
1012
#include "util/evsel.h"
1113
#include "util/evlist.h"
1214
#include "util/cpumap.h"

‎tools/perf/tests/switch-tracking.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <perf/cpumap.h>
99
#include <perf/evlist.h>
1010

11+
#include "debug.h"
1112
#include "parse-events.h"
1213
#include "evlist.h"
1314
#include "evsel.h"

‎tools/perf/tests/task-exit.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
2+
#include "debug.h"
23
#include "evlist.h"
34
#include "evsel.h"
45
#include "target.h"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "../ui.h"
55
#include "../util.h"
66
#include "../../util/annotate.h"
7+
#include "../../util/debug.h"
78
#include "../../util/hist.h"
89
#include "../../util/sort.h"
910
#include "../../util/map.h"

0 commit comments

Comments
 (0)