On Tue, Sep 15, 2020 at 02:17:46PM +0200, Jiri Olsa wrote: SNIP > <2><140d7aa>: Abbrev Number: 3 (DW_TAG_formal_parameter) > <140d7ab> DW_AT_type : <0x140cfb6> > <2><140d7af>: Abbrev Number: 3 (DW_TAG_formal_parameter) > <140d7b0> DW_AT_type : <0x1406176> > <2><140d7b4>: Abbrev Number: 3 (DW_TAG_formal_parameter) > <140d7b5> DW_AT_type : <0x14060c9> > <2><140d7b9>: Abbrev Number: 0 > > the latter is just declaration.. but it's missing the > <365d69d> DW_AT_declaration : 1 > > so it goes through pahole's function processing: > > cu__encode_btf: > ... > cu__for_each_function(cu, core_id, fn) { > int btf_fnproto_id, btf_fn_id; > > if (fn->declaration || !fn->external) > continue; > ... > > > CC-ing Frank.. any idea why is the DW_AT_declaration : 1 missing? looks like gcc issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97060 let's see ;-) jirka