* Need help in printing call stacks for all CPU's
@ 2013-11-21 10:22 manty kuma
2013-11-21 10:43 ` Andreas Platschek
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: manty kuma @ 2013-11-21 10:22 UTC (permalink / raw)
To: kernelnewbies
I wish to print the call stacks of all the cpus. at a given time. How can i
do it?
for_each_cpu{
dump_stack() -> Some function like this available? or i should write my own
code?
...
}
Any pointers would help.
Thank you,
Sandeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131121/057c17d5/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread* Need help in printing call stacks for all CPU's
2013-11-21 10:22 Need help in printing call stacks for all CPU's manty kuma
@ 2013-11-21 10:43 ` Andreas Platschek
2013-11-21 10:53 ` Fan Du
2013-11-21 11:22 ` Fan Du
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Platschek @ 2013-11-21 10:43 UTC (permalink / raw)
To: kernelnewbies
Hi Sandeep,
This should be possible using ftrace without touching the code. I am not
sure how to trigger on a specific function but I think it should be
possible. Have a look at Documentation/trace/ftrace.txt
andi
On 11/21/2013 11:22 AM, manty kuma wrote:
> I wish to print the call stacks of all the cpus. at a given time. How
> can i do it?
>
> for_each_cpu{
> dump_stack() -> Some function like this available? or i should write
> my own code?
> ...
> }
>
> Any pointers would help.
>
> Thank you,
> Sandeep
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131121/d1ddc341/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread* Need help in printing call stacks for all CPU's
2013-11-21 10:22 Need help in printing call stacks for all CPU's manty kuma
2013-11-21 10:43 ` Andreas Platschek
@ 2013-11-21 10:53 ` Fan Du
2013-11-21 11:22 ` Fan Du
2 siblings, 0 replies; 4+ messages in thread
From: Fan Du @ 2013-11-21 10:53 UTC (permalink / raw)
To: kernelnewbies
echo l > /proc/sysrq-trigger
On 2013?11?21? 18:22, manty kuma wrote:
> I wish to print the call stacks of all the cpus. at a given time. How can i do it?
>
> for_each_cpu{
> dump_stack() -> Some function like this available? or i should write my own code?
> ...
> }
>
> Any pointers would help.
>
> Thank you,
> Sandeep
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
?????????
--fan fan
^ permalink raw reply [flat|nested] 4+ messages in thread* Need help in printing call stacks for all CPU's
2013-11-21 10:22 Need help in printing call stacks for all CPU's manty kuma
2013-11-21 10:43 ` Andreas Platschek
2013-11-21 10:53 ` Fan Du
@ 2013-11-21 11:22 ` Fan Du
2 siblings, 0 replies; 4+ messages in thread
From: Fan Du @ 2013-11-21 11:22 UTC (permalink / raw)
To: kernelnewbies
echo l > /proc/sysrq-trigger
On 2013?11?21? 18:22, manty kuma wrote:
> I wish to print the call stacks of all the cpus. at a given time. How can i do it?
>
> for_each_cpu{
> dump_stack() -> Some function like this available? or i should write my own code?
> ...
> }
>
> Any pointers would help.
>
> Thank you,
> Sandeep
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
?????????
--fan fan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-21 11:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-21 10:22 Need help in printing call stacks for all CPU's manty kuma
2013-11-21 10:43 ` Andreas Platschek
2013-11-21 10:53 ` Fan Du
2013-11-21 11:22 ` Fan Du
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).