]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/btf: Use btf_type_str() whenever possible
authorPeilin Ye <peilin.ye@bytedance.com>
Fri, 16 Sep 2022 20:28:00 +0000 (13:28 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Sat, 17 Sep 2022 00:09:38 +0000 (17:09 -0700)
commita7931956e96a79c11638609d84ce84202d03be76
treef8e260db16f1b547ac43c2b19427993e2a9679b3
parent978d334aa42ff768096011f4e023a4ae568f575d
bpf/btf: Use btf_type_str() whenever possible

We have btf_type_str().  Use it whenever possible in btf.c, instead of
"btf_kind_str[BTF_INFO_KIND(t->info)]".

Signed-off-by: Peilin Ye <peilin.ye@bytedance.com>
Link: https://lore.kernel.org/r/20220916202800.31421-1-yepeilin.cs@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
kernel/bpf/btf.c