Re: __builtin_return_address(0) and schedule()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux