Mark, Jan, On 26 February 2014 10:13, Mark Wielaard <[email protected]> wrote: > On Wed, 2014-02-26 at 09:18 +0100, Jean Pihet wrote: >> While at it, I have a concern about the compat mode: profiling an >> ARMv7 binary on an ARMv8 system. >> Is this supported by libdw? > > My ARM terminology is not that great, but assuming ARMv7 is 32-bit > (AARCH32?)and ARMv8 is 64-bit (AARCH64), then yes, this should work. The > libdw interface is "generic". It uses abstract types like Dwarf_Addr and > Dwarf_Word that are big enough to hold values for either 32 or 64 bit > setups, and the registers are mapped to an array of Dwarf_Word values. > The backends handle the actual fetching and manipulation of the register > values. The backend used is selected through the ELF identifier. You can > explicitly not link against any backend to make it possible for elfutils > to evolve the interfaces/backends without breaking user programs. This is great!
> All this works for i686 and x86_64 in practice, so in theory (not tested > yet) it should also work for ARMv7 and ARMv8. If you get it working we > would love to hear it :) Sure I let you know as soon as some results can be shown on ARMv8. > > Cheers, > > Mark > Thx! Cheers, Jean
