btf_type_is_primitive
bool btf_type_is_primitive(const struct btf_type *t);
if (btf_type_is_void(ref_t) || btf_type_is_primitive(ref_t)) {