selftests/bpf: Avoid errno clobbering
mainline inclusion from mainline-5.11-rc1 commit 5f61b7c6 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5f61b7c6975b03e6ace2cfb13d415d5f475c8830 ------------------------------------------------- Print a message when the returned error is about a program type being not supported or because of permission problems. These messages are expected if the program to test was actually executed. Signed-off-by: NFlorian Lehner <dev@der-flo.net> Signed-off-by: NAndrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20201204181828.11974-3-dev@der-flo.net (cherry picked from commit 5f61b7c6) Signed-off-by: NWang Yufen <wangyufen@huawei.com>
Showing
想要评论请 注册 或 登录