Difference between dwarf_getscopes and dwarf_getscopes_die

2020-06-13 Thread Milian Wolff
Hey all, can someone explain me the difference between dwarf_getscopes and dwarf_getscopes_die? Ideally, this should then be added to the documentation too. Currently, the documentation states: ``` /* Return scope DIEs containing PC address. Sets *SCOPES to a malloc'd array of Dwarf_Die str

Can dwarf_getscopes{,_die} performance be improved?

2020-06-13 Thread Milian Wolff
Hey all! In perfparser we are running into a performance issue with elfutils when we try to resolve inline frames. We are following the procedure outlined by eu- addr2line, i.e. for every IP we basically do: ``` Dwarf_Addr bias = 0; Dwarf_Die *cudie = dwfl_module_addrdie(module, ip, &bias); Dwa