Uwe Kleine-König wrote:
> Hello,
> 
> currently[1] __builtin_return_address for ARM only works with level == 0.
> 
> For ftrace in the linux kernel it would be great to implement that for
> level > 0 (provided that framepointers or unwind information are
> available of course).  On the linux-arm-kernel ML Mikael Pettersson[2]
> said that "__builtin_return_address(N) where N>0 should never have been
> introduced into gcc.".  Is that the general view for
> __builtin_return_address or would a patch be accepted?

My personal opinion is that Mikael Pettersson is right, but since the
damage is done why not extend it to more architectures.

I am not an ARM maintainer though.

Paolo

Reply via email to