Is there a way to get function caller in linux kernel? I know __func__ returns the function name which is executing. I am looking for the function whic
Whether or not frame pointers are needed depends on arch, IIRC. For x86, they are certainly desired to fully exploit these features. Also note that inlining can skew the accuracy of builtin_return_address for this very reason.
If you just want a stack dump to see how some place was reached, better use the dump_stack()
function than trying to fiddle around with builtin_return_address.