libbpf: fix __arg_ctx type enforcement for perf_event programs
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 25 Jan 2024 20:55:05 +0000 (12:55 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 29 Jan 2024 20:34:13 +0000 (12:34 -0800)
commit9eea8fafe33eb70868f6ace2fc1e17c4ff5539c3
tree504fe883aa1bf4cbb27a7cbf85152d3cd2d93c65
parent0e6d0a9d2348b64df74239e859fa9d6e86cdcdef
libbpf: fix __arg_ctx type enforcement for perf_event programs

Adjust PERF_EVENT type enforcement around __arg_ctx to match exactly
what kernel is doing.

Fixes: 76ec90a996e3 ("libbpf: warn on unexpected __arg_ctx type when rewriting BTF")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240125205510.3642094-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c