Hello Jiri, On Mon Apr 14, 2025 at 1:04 PM CEST, Jiri Olsa wrote: > On Fri, Apr 11, 2025 at 10:32:10PM +0200, Alexis Lothoré (eBPF Foundation) > wrote:
[...] >> + for_each_member(i, t, member) { >> + mtype = btf_type_by_id(btf, member->type); >> + while (mtype && btf_type_is_modifier(mtype)) >> + mtype = btf_type_by_id(btf, mtype->type); >> + if (!mtype) >> + return -EINVAL; > > should we use __get_type_size for member->type instead ? Ah, yes, thanks for the hint, that will allow to get rid of the manual modifiers skip. Alexis > jirka -- Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com