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>
This commit is contained in:
parent
0ac25fd0a0
commit
b42090256f
|
@ -9,6 +9,7 @@
|
|||
#include <linux/zalloc.h>
|
||||
|
||||
#include "../../util/auxtrace.h"
|
||||
#include "../../util/debug.h"
|
||||
#include "../../util/evlist.h"
|
||||
#include "../../util/pmu.h"
|
||||
#include "cs-etm.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/zalloc.h>
|
||||
|
||||
#include "cs-etm.h"
|
||||
#include "../../util/debug.h"
|
||||
#include "../../util/record.h"
|
||||
#include "../../util/auxtrace.h"
|
||||
#include "../../util/cpumap.h"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <perf/cpumap.h>
|
||||
#include <perf/evlist.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "parse-events.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <perf/cpumap.h>
|
||||
#include <perf/evlist.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "parse-events.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <perf/cpumap.h>
|
||||
#include <perf/evlist.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "parse-events.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <pthread.h>
|
||||
#include <perf/cpumap.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
#include "thread_map.h"
|
||||
|
|
|
@ -5,8 +5,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
#include <sys/mman.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#include "tests.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/evsel.h"
|
||||
#include "util/evlist.h"
|
||||
#include "util/cpumap.h"
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <perf/cpumap.h>
|
||||
#include <perf/evlist.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "parse-events.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include "debug.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
#include "target.h"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include "../ui.h"
|
||||
#include "../util.h"
|
||||
#include "../../util/annotate.h"
|
||||
#include "../../util/debug.h"
|
||||
#include "../../util/hist.h"
|
||||
#include "../../util/sort.h"
|
||||
#include "../../util/map.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/time64.h>
|
||||
#include <linux/zalloc.h>
|
||||
|
||||
#include "../../util/debug.h"
|
||||
#include "../../util/callchain.h"
|
||||
#include "../../util/evsel.h"
|
||||
#include "../../util/evlist.h"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <linux/compiler.h>
|
||||
|
||||
#include "../util/callchain.h"
|
||||
#include "../util/debug.h"
|
||||
#include "../util/hist.h"
|
||||
#include "../util/util.h"
|
||||
#include "../util/sort.h"
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include "event.h"
|
||||
#include "session.h"
|
||||
#include "debug.h"
|
||||
|
||||
union perf_event;
|
||||
struct perf_session;
|
||||
|
@ -614,6 +613,7 @@ void itrace_synth_opts__clear_time_range(struct itrace_synth_opts *opts)
|
|||
}
|
||||
|
||||
#else
|
||||
#include "debug.h"
|
||||
|
||||
static inline struct auxtrace_record *
|
||||
auxtrace_record__init(struct evlist *evlist __maybe_unused,
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "util/hist.h" /* perf_hist_config */
|
||||
#include "util/llvm-utils.h" /* perf_llvm_config */
|
||||
#include "config.h"
|
||||
#include "debug.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include "callchain.h"
|
||||
#include "debug.h"
|
||||
#include "build-id.h"
|
||||
#include "hist.h"
|
||||
#include "map.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef __LLVM_UTILS_H
|
||||
#define __LLVM_UTILS_H
|
||||
|
||||
#include "debug.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
struct llvm_param {
|
||||
/* Path of clang executable */
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
/* Manage metrics and groups of metrics from JSON files */
|
||||
|
||||
#include "metricgroup.h"
|
||||
#include "debug.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
#include "strbuf.h"
|
||||
|
@ -18,6 +19,7 @@
|
|||
#include "strlist.h"
|
||||
#include <assert.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/zalloc.h>
|
||||
#include <subcmd/parse-options.h>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <poll.h>
|
||||
#include <linux/err.h>
|
||||
#include <perf/cpumap.h>
|
||||
#include "debug.h"
|
||||
#include "evlist.h"
|
||||
#include "callchain.h"
|
||||
#include "evsel.h"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include "debug.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
#include "cpumap.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <sys/mman.h>
|
||||
#include <perf/cpumap.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
#include "memswap.h"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <regex.h>
|
||||
#include <linux/mman.h>
|
||||
#include <linux/time64.h>
|
||||
#include "debug.h"
|
||||
#include "sort.h"
|
||||
#include "hist.h"
|
||||
#include "cacheline.h"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <inttypes.h>
|
||||
#include <math.h>
|
||||
#include "counts.h"
|
||||
#include "debug.h"
|
||||
#include "stat.h"
|
||||
#include "target.h"
|
||||
#include "evlist.h"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#ifndef __TRIGGER_H_
|
||||
#define __TRIGGER_H_ 1
|
||||
|
||||
#include "util/debug.h"
|
||||
#include "asm/bug.h"
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue