Skip to content

Commit e0fcfb0

Browse files
committed
perf evlist: Adopt backwards ring buffer state enum
As this isn't used at all in mmap.h but in evlist.h, so to cut down the header dependency tree, move it to where it is used. Also add mmap.h to the places using it but previously getting it indirectly via evlist.h. Add missing pthread.h to evlist.h, as it has a pthread_t struct member and was getting the header via mmap.h. Noticed while processing a Jiri's libperf batch touching mmap.h, where almost everything gets rebuilt because evlist.h is so popular, so cut down't this rebuild the world party. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Song Liu <songliubraving@fb.com> Link: https://lkml.kernel.org/n/tip-he0uljeftl0xfveh3d6vtode@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent d80a554 commit e0fcfb0

26 files changed

Lines changed: 53 additions & 29 deletions

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <stdbool.h>
2+
#include <stdlib.h>
23
#include <linux/kernel.h>
34
#include <linux/types.h>
45
#include <linux/bitops.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
@@ -17,6 +17,7 @@
1717
#include "thread_map.h"
1818
#include "record.h"
1919
#include "tsc.h"
20+
#include "util/mmap.h"
2021
#include "tests/tests.h"
2122

2223
#include "arch-tests.h"

‎tools/perf/arch/x86/util/intel-bts.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "../../util/event.h"
1616
#include "../../util/evsel.h"
1717
#include "../../util/evlist.h"
18+
#include "../../util/mmap.h"
1819
#include "../../util/session.h"
1920
#include "../../util/pmu.h"
2021
#include "../../util/debug.h"

‎tools/perf/arch/x86/util/intel-pt.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "../../util/evlist.h"
1919
#include "../../util/evsel.h"
2020
#include "../../util/cpumap.h"
21+
#include "../../util/mmap.h"
2122
#include <subcmd/parse-options.h>
2223
#include "../../util/parse-events.h"
2324
#include "../../util/pmu.h"

‎tools/perf/builtin-kvm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "util/build-id.h"
66
#include "util/evsel.h"
77
#include "util/evlist.h"
8+
#include "util/mmap.h"
89
#include "util/term.h"
910
#include "util/symbol.h"
1011
#include "util/thread.h"

‎tools/perf/builtin-record.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "util/evlist.h"
2121
#include "util/evsel.h"
2222
#include "util/debug.h"
23+
#include "util/mmap.h"
2324
#include "util/target.h"
2425
#include "util/session.h"
2526
#include "util/tool.h"

‎tools/perf/builtin-top.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "util/event.h"
3131
#include "util/machine.h"
3232
#include "util/map.h"
33+
#include "util/mmap.h"
3334
#include "util/session.h"
3435
#include "util/symbol.h"
3536
#include "util/synthetic-events.h"

‎tools/perf/builtin-trace.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "util/synthetic-events.h"
3232
#include "util/evlist.h"
3333
#include "util/evswitch.h"
34+
#include "util/mmap.h"
3435
#include <subcmd/pager.h>
3536
#include <subcmd/exec-cmd.h>
3637
#include "util/machine.h"

‎tools/perf/tests/backward-ring-buffer.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "tests.h"
1111
#include "debug.h"
1212
#include "parse-events.h"
13+
#include "util/mmap.h"
1314
#include <errno.h>
1415
#include <linux/string.h>
1516

‎tools/perf/tests/bpf.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "llvm.h"
2020
#include "debug.h"
2121
#include "parse-events.h"
22+
#include "util/mmap.h"
2223
#define NR_ITERS 111
2324
#define PERF_TEST_BPF_PATH "/sys/fs/bpf/perf_test"
2425

0 commit comments

Comments
 (0)