]> git.baikalelectronics.ru Git - kernel.git/commit
perf bpf: check perf_attr_map is compatible with the perf binary
authorSong Liu <song@kernel.org>
Sun, 25 Apr 2021 21:43:30 +0000 (14:43 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Apr 2021 13:30:58 +0000 (10:30 -0300)
commit2096b0ca3939fa41a2b341e9904a9a2a428196bd
treeeca85c8ff7ca4f6bcf9dc98cb8fff7d6f12ea9f3
parent02679d8a9ccfbd80049dbac2a428ac27f862e4d6
perf bpf: check perf_attr_map is compatible with the perf binary

perf_attr_map could be shared among different version of perf binary. Add
bperf_attr_map_compatible() to check whether the existing attr_map is
compatible with current perf binary.

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-3-song@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf_counter.c