]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf bpf: Clean up the generated/copied vmlinux.h
authorArnaldo Carvalho de Melo <acme@kernel.org>
Fri, 2 Feb 2024 14:32:20 +0000 (11:32 -0300)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:45 +0000 (18:19 -0400)
commit13696dc3ed1708c33a59d99112e16051bb1599e1
tree99155320ae4e66d8c2ca51b1c7a0b9982b74d9e4
parentcfd2417c3be20585926e4f232ece9ea5c31a73e6
perf bpf: Clean up the generated/copied vmlinux.h

[ Upstream commit ffd856537b95dd65facb4e0c78ca1cb92c2048ff ]

When building perf with BPF skels we either copy the minimalistic
tools/perf/util/bpf_skel/vmlinux/vmlinux.h or use bpftool to generate a
vmlinux from BTF, storing the result in $(SKEL_OUT)/vmlinux.h.

We need to remove that when doing a 'make -C tools/perf clean', fix it.

Fixes: b7a2d774c9c5a9a3 ("perf build: Add ability to build with a generated vmlinux.h")
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: James Clark <james.clark@arm.com>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>
Cc: Yang Jihong <yangjihong1@huawei.com>
Cc: bpf@vger.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/Zbz89KK5wHfZ82jv@x1
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/Makefile.perf