Need help in printing call stacks for all CPU's
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
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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- 浮沉随浪只记今朝笑 --fan fan
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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- 浮沉随浪只记今朝笑 --fan fan
participants (3)
-
Andreas Platschek -
Fan Du -
manty kuma