diff options
author | Namhyung Kim <namhyung@kernel.org> | 2021-06-25 09:18:25 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-07-01 21:14:19 +0200 |
commit | d6a735ef3277c45f48c911b98669174bc4b650d9 (patch) | |
tree | e0038ac2f047c4a753485631f77c83c5ae094d22 /tools/perf/jvmti | |
parent | perf tools: Add cgroup_is_v2() helper (diff) | |
download | linux-d6a735ef3277c45f48c911b98669174bc4b650d9.tar.xz linux-d6a735ef3277c45f48c911b98669174bc4b650d9.zip |
perf bpf_counter: Move common functions to bpf_counter.h
Some helper functions will be used for cgroup counting too. Move them
to a header file for sharing.
Committer notes:
Fix the build on older systems with:
- struct bpf_map_info map_info = {0};
+ struct bpf_map_info map_info = { .id = 0, };
This wasn't breaking the build in such systems as bpf_counter.c isn't
built due to:
tools/perf/util/Build:
perf-$(CONFIG_PERF_BPF_SKEL) += bpf_counter.o
The bpf_counter.h file on the other hand is included from places that
are built everywhere.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20210625071826.608504-4-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/jvmti')
0 files changed, 0 insertions, 0 deletions