-
由 Andrii Nakryiko 提交于
mainline inclusion from mainline-5.13-rc1 commit e14ef4bf 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=e14ef4bf011192b61b48c4f3a35b3041140073ff ------------------------------------------------- btf_type_by_id() is internal-only convenience API returning non-const pointer to struct btf_type. Expose it outside of btf.c for re-use. Signed-off-by: NAndrii Nakryiko <andrii@kernel.org> Signed-off-by: NAlexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20210318194036.3521577-2-andrii@kernel.org (cherry picked from commit e14ef4bf) Signed-off-by: NWang Yufen <wangyufen@huawei.com>
fc8027e5