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