[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: __builtin_return_address(0) and schedule()
Hi...
> How can I know which kernel function has called the schedule()
> function?
Besides using built in gcc function, I suggest to use cscope and query
the caller function.
> Is it enough to print __builtin_return_address(0) inside the
> schedule() function to figure out who is the caller function?
If the caller function is not inlined, then IMHO yes you can. If the
caller is inlined, likely you will land into 2nd degree caller (if
exist). CMIIW people
regards
Mulyadi
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/