Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+18 -3
+1
tools/perf/builtin-c2c.c
··· 35 35 #include "thread.h" 36 36 #include "mem2node.h" 37 37 #include "symbol.h" 38 + #include "../perf.h" 38 39 39 40 struct c2c_hists { 40 41 struct hists hists;
+1
tools/perf/builtin-diff.c
··· 6 6 * DSOs and symbol information, sort them and produce a diff. 7 7 */ 8 8 #include "builtin.h" 9 + #include "perf.h" 9 10 10 11 #include "util/debug.h" 11 12 #include "util/event.h"
+1
tools/perf/builtin-record.c
··· 42 42 #include "util/units.h" 43 43 #include "util/bpf-event.h" 44 44 #include "asm/bug.h" 45 + #include "perf.h" 45 46 46 47 #include <errno.h> 47 48 #include <inttypes.h>
+1
tools/perf/builtin-script.c
··· 53 53 #include <perf/evlist.h> 54 54 #include "util/record.h" 55 55 #include "util/util.h" 56 + #include "perf.h" 56 57 57 58 #include <linux/ctype.h> 58 59
+1
tools/perf/builtin-stat.c
··· 41 41 */ 42 42 43 43 #include "builtin.h" 44 + #include "perf.h" 44 45 #include "util/cgroup.h" 45 46 #include <subcmd/parse-options.h> 46 47 #include "util/parse-events.h"
+1
tools/perf/builtin-trace.c
··· 51 51 #include "string2.h" 52 52 #include "syscalltbl.h" 53 53 #include "rb_resort.h" 54 + #include "../perf.h" 54 55 55 56 #include <errno.h> 56 57 #include <inttypes.h>
+1
tools/perf/perf.c
··· 8 8 * perf top, perf record, perf report, etc.) are started. 9 9 */ 10 10 #include "builtin.h" 11 + #include "perf.h" 11 12 12 13 #include "util/env.h" 13 14 #include <subcmd/exec-cmd.h>
+1
tools/perf/ui/browsers/hists.c
··· 22 22 #include "../../util/top.h" 23 23 #include "../../util/thread.h" 24 24 #include "../../arch/common.h" 25 + #include "../../perf.h" 25 26 26 27 #include "../browsers/hists.h" 27 28 #include "../helpline.h"
+1
tools/perf/ui/browsers/res_sample.c
··· 8 8 #include "time-utils.h" 9 9 #include "../util.h" 10 10 #include "../../util/util.h" 11 + #include "../../perf.h" 11 12 #include <linux/time64.h> 12 13 #include <linux/zalloc.h> 13 14
+1
tools/perf/ui/browsers/scripts.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include "../../builtin.h" 3 + #include "../../perf.h" 3 4 #include "../../util/sort.h" 4 5 #include "../../util/util.h" 5 6 #include "../../util/hist.h"
+1
tools/perf/ui/hist.c
··· 9 9 #include "../util/sort.h" 10 10 #include "../util/evsel.h" 11 11 #include "../util/evlist.h" 12 + #include "../perf.h" 12 13 13 14 /* hist period print (hpp) functions */ 14 15
+1
tools/perf/ui/tui/setup.c
··· 11 11 #include "../../util/cache.h" 12 12 #include "../../util/debug.h" 13 13 #include "../../util/util.h" 14 + #include "../../perf.h" 14 15 #include "../browser.h" 15 16 #include "../helpline.h" 16 17 #include "../ui.h"
-1
tools/perf/util/auxtrace.h
··· 17 17 #include <asm/bitsperlong.h> 18 18 #include <asm/barrier.h> 19 19 20 - #include "../perf.h" 21 20 #include "event.h" 22 21 #include "session.h" 23 22 #include "debug.h"
+1
tools/perf/util/callchain.c
··· 28 28 #include "callchain.h" 29 29 #include "branch.h" 30 30 #include "symbol.h" 31 + #include "../perf.h" 31 32 32 33 #define CALLCHAIN_PARAM_DEFAULT \ 33 34 .mode = CHAIN_GRAPH_ABS, \
+1
tools/perf/util/event.c
··· 30 30 #include "stat.h" 31 31 #include "session.h" 32 32 #include "bpf-event.h" 33 + #include "../perf.h" 33 34 34 35 #define DEFAULT_PROC_MAP_PARSE_TIMEOUT 500 35 36
-1
tools/perf/util/event.h
··· 9 9 #include <linux/perf_event.h> 10 10 #include <perf/event.h> 11 11 12 - #include "../perf.h" 13 12 #include "build-id.h" 14 13 #include "perf_regs.h" 15 14
+1
tools/perf/util/evlist.c
··· 17 17 #include "debug.h" 18 18 #include "units.h" 19 19 #include "util.h" 20 + #include "../perf.h" 20 21 #include "asm/bug.h" 21 22 #include "bpf-event.h" 22 23 #include <signal.h>
-1
tools/perf/util/evlist.h
··· 9 9 #include <api/fd/array.h> 10 10 #include <stdio.h> 11 11 #include <internal/evlist.h> 12 - #include "../perf.h" 13 12 #include "event.h" 14 13 #include "evsel.h" 15 14 #include "mmap.h"
+1
tools/perf/util/mmap.c
··· 16 16 #include "debug.h" 17 17 #include "event.h" 18 18 #include "mmap.h" 19 + #include "../perf.h" 19 20 #include "util.h" /* page_size */ 20 21 21 22 size_t perf_mmap__mmap_len(struct perf_mmap *map)
+1
tools/perf/util/session.c
··· 29 29 #include "sample-raw.h" 30 30 #include "stat.h" 31 31 #include "util.h" 32 + #include "../perf.h" 32 33 #include "arch/common.h" 33 34 34 35 #ifdef HAVE_ZSTD_SUPPORT
+1
tools/perf/util/top.c
··· 12 12 #include "parse-events.h" 13 13 #include "symbol.h" 14 14 #include "top.h" 15 + #include "../perf.h" 15 16 #include <inttypes.h> 16 17 17 18 #define SNPRINTF(buf, size, fmt, args...) \