]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
tools/resolve_btfids: Check objects before removing
authorJiri Olsa <jolsa@kernel.org>
Fri, 5 Feb 2021 12:40:18 +0000 (13:40 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:53:15 +0000 (09:53 +0200)
commitbf05edda065dfa76cdff47531849de7827976a35
tree44f657fc4e2bf5f824b7c69722028cd42d7b3887
parent043d44eb6e3be43e4b222d64a6984f69eabe9ed7
tools/resolve_btfids: Check objects before removing

BugLink: https://bugs.launchpad.net/bugs/1923415
[ Upstream commit f23130979c2f15ea29a431cd9e1ea7916337bbd4 ]

We want this clean to be called from tree's root clean
and that one is silent if there's nothing to clean.

Adding check for all object to clean and display CLEAN
messages only if there are objects to remove.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210205124020.683286-3-jolsa@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
tools/bpf/resolve_btfids/Makefile