OSDN Git Service

perf util: Move bpf_perf definitions to a libperf header
authorSong Liu <song@kernel.org>
Sun, 25 Apr 2021 21:43:29 +0000 (14:43 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Apr 2021 13:30:58 +0000 (10:30 -0300)
commitec8149fba64b719a618b432ce9eea7ce937a523c
treea60350296d16034b7ddabc4fe43d6f84727664f5
parent26bda3ca19c5a775e4a8c2d4136d83a1327e4a66
perf util: Move bpf_perf definitions to a libperf header

By following the same protocol, other tools can share hardware PMCs with
perf. Move perf_event_attr_map_entry and BPF_PERF_DEFAULT_ATTR_MAP_PATH to
bpf_perf.h for other tools to use.

Signed-off-by: Song Liu <song@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: kernel-team@fb.com
Link: https://lore.kernel.org/r/20210425214333.1090950-2-song@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/include/perf/bpf_perf.h [new file with mode: 0644]
tools/perf/util/bpf_counter.c