Add support for gprofng on LoongArch
Vladimir Mezentsev
vladimir.mezentsev@oracle.com
Fri May 17 16:30:01 GMT 2024
On 5/17/24 01:26, mengqinggang wrote:
> Hi,
>
> I am porting gprofng to LoongArch architecture.
> I have some question about stack_unwind function in
> libcollector/unwind.c.
> Is it possible to use .eh_frame section for stack unwinding?
We can teach libcollector to read Elf and parse the .eh_frame section.
But we need to map each address to a Loadobject.
How can we do it ?
We don't have time to read /proc/self/map_files/ every time.
We have approximately 0.1 seconds for stack_unwind() and data recording
in the experiment.
-Vladimir
> Aarch64 stack unwind is simple because x29, x30 register saved on SP
> and (SP + 8).
> But x86_64 stack unwind need to walk through instructions, it looks
> very complicated.
> Is there any other method for stack unwind?
>
> Thank you.
>
>
More information about the Binutils
mailing list