]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02679d8a9ccfbd80049dbac2a428ac27f862e4d6
treea60350296d16034b7ddabc4fe43d6f84727664f5
parent5b1508c79626b3d664beada371a0f3a0b59e3f9f
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