WSL2-Linux-Kernel/tools/perf/util/bpf_skel
Song Liu cff728217a perf bpf_skel: Do not use typedef to avoid error on old clang
[ Upstream commit 5a897531e0 ]

When building bpf_skel with clang-10, typedef causes confusions like:

  libbpf: map 'prev_readings': unexpected def kind var.

Fix this by removing the typedef.

Fixes: 7fac83aaf2 ("perf stat: Introduce 'bperf' to share hardware PMCs with BPF")
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lore.kernel.org/lkml/BEF5C312-4331-4A60-AEC0-AD7617CB2BC4@fb.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-17 10:30:13 +01:00
..
.gitignore perf build: Support build BPF skeletons with perf 2021-01-15 15:49:07 -03:00
bperf_cgroup.bpf.c perf stat: Enable BPF counter with --for-each-cgroup 2021-07-05 14:16:57 -03:00
bperf_follower.bpf.c perf bpf_skel: Do not use typedef to avoid error on old clang 2021-12-17 10:30:13 +01:00
bperf_leader.bpf.c perf bpf_skel: Do not use typedef to avoid error on old clang 2021-12-17 10:30:13 +01:00
bperf_u.h perf stat: Introduce 'bperf' to share hardware PMCs with BPF 2021-03-23 17:46:44 -03:00
bpf_prog_profiler.bpf.c perf skel: Remove some unused variables. 2021-03-06 16:42:02 -03:00