kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* how to get kernel functions calling stack/invokation ordert
@ 2011-04-01  9:49 sri
  2011-04-01 10:03 ` Daniel Baluta
  2011-04-01 10:03 ` Daniel Baluta
  0 siblings, 2 replies; 4+ messages in thread
From: sri @ 2011-04-01  9:49 UTC (permalink / raw)
  To: kernelnewbies

Hi,

Is there a way to find, in the kernel src tree, which routine/function is
calling another function OR kernel function invocation stack order?
This would be helpful for me to know the various steps/functionalities
involved during executing something in kernel space.

-Sri-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110401/dd23be1d/attachment-0001.html 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* how to get kernel functions calling stack/invokation ordert
  2011-04-01  9:49 how to get kernel functions calling stack/invokation ordert sri
@ 2011-04-01 10:03 ` Daniel Baluta
  2011-04-01 11:06   ` sri
  2011-04-01 10:03 ` Daniel Baluta
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Baluta @ 2011-04-01 10:03 UTC (permalink / raw)
  To: kernelnewbies

> Is there a way to find, in the kernel src tree, which routine/function is
> calling another function OR kernel function invocation stack order?
> This would be helpful for me to know the various steps/functionalities
> involved during executing something in kernel space.

At runtime you can use dumpstack() [1].
Otherwise, just for reading the code I suggest cscope [2].

thanks,
Daniel.

[1] http://lxr.linux.no/linux+v2.6.38/arch/x86/kernel/dumpstack.c#L198
[2] http://cscope.sourceforge.net/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* how to get kernel functions calling stack/invokation ordert
  2011-04-01  9:49 how to get kernel functions calling stack/invokation ordert sri
  2011-04-01 10:03 ` Daniel Baluta
@ 2011-04-01 10:03 ` Daniel Baluta
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Baluta @ 2011-04-01 10:03 UTC (permalink / raw)
  To: kernelnewbies

> Is there a way to find, in the kernel src tree, which routine/function is
> calling another function OR kernel function invocation stack order?
> This would be helpful for me to know the various steps/functionalities
> involved during executing something in kernel space.

At runtime you can use dumpstack() [1].
Otherwise, just for reading the code I suggest cscope [2].

thanks,
Daniel.

[1] http://lxr.linux.no/linux+v2.6.38/arch/x86/kernel/dumpstack.c#L198
[2] http://cscope.sourceforge.net/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* how to get kernel functions calling stack/invokation ordert
  2011-04-01 10:03 ` Daniel Baluta
@ 2011-04-01 11:06   ` sri
  0 siblings, 0 replies; 4+ messages in thread
From: sri @ 2011-04-01 11:06 UTC (permalink / raw)
  To: kernelnewbies

Thank you Daniel for the links.
Am using kernel-2.6.18-194.centosplus.el5 and dumpstack.c (under
lib/dumpstack.c) implentation said simply "This architecture does not
support dump_stack".

Thanks, Sri.

On Fri, Apr 1, 2011 at 3:33 PM, Daniel Baluta <daniel.baluta@gmail.com>wrote:

> > Is there a way to find, in the kernel src tree, which routine/function is
> > calling another function OR kernel function invocation stack order?
> > This would be helpful for me to know the various steps/functionalities
> > involved during executing something in kernel space.
>
> At runtime you can use dumpstack() [1].
> Otherwise, just for reading the code I suggest cscope [2].
>
> thanks,
> Daniel.
>
> [1] http://lxr.linux.no/linux+v2.6.38/arch/x86/kernel/dumpstack.c#L198
> [2] http://cscope.sourceforge.net/
>



-- 
--
 Krishna Mohan B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110401/e59d0a7a/attachment.html 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-01 11:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01  9:49 how to get kernel functions calling stack/invokation ordert sri
2011-04-01 10:03 ` Daniel Baluta
2011-04-01 11:06   ` sri
2011-04-01 10:03 ` Daniel Baluta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).