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 | 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; |
| @@ -6,6 +6,7 @@ · 5 unmodified lines | ||
| 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" |
| @@ -42,6 +42,7 @@ · 41 unmodified lines | ||
| 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> |
| @@ -53,6 +53,7 @@ · 52 unmodified lines | ||
| 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 | |
| @@ -41,6 +41,7 @@ · 40 unmodified lines | ||
| 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" |
| @@ -51,6 +51,7 @@ · 50 unmodified lines | ||
| 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> |
| @@ -8,6 +8,7 @@ · 7 unmodified lines | ||
| 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> |
| @@ -22,6 +22,7 @@ · 21 unmodified lines | ||
| 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" |
| @@ -8,6 +8,7 @@ · 7 unmodified lines | ||
| 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,5 +1,6 @@ | ||
| 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" |
| @@ -9,6 +9,7 @@ · 8 unmodified lines | ||
| 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 | |
| @@ -11,6 +11,7 @@ · 10 unmodified lines | ||
| 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" |
| @@ -17,7 +17,6 @@ · 16 unmodified lines | ||
| 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" |
| @@ -28,6 +28,7 @@ · 27 unmodified lines | ||
| 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, \ |
| @@ -30,6 +30,7 @@ · 29 unmodified lines | ||
| 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 | |
| @@ -9,7 +9,6 @@ · 8 unmodified lines | ||
| 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 | |
| @@ -17,6 +17,7 @@ · 16 unmodified lines | ||
| 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> |
| @@ -9,7 +9,6 @@ · 8 unmodified lines | ||
| 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" |
| @@ -16,6 +16,7 @@ · 15 unmodified lines | ||
| 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) |
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 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 |
| @@ -12,6 +12,7 @@ · 11 unmodified lines | ||
| 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...) \ |