Need help in printing call stacks for all CPU's

2013-11-21 Thread manty kuma
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

Re: Need help in printing call stacks for all CPU's

2013-11-21 Thread Andreas Platschek
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

Re: Need help in printing call stacks for all CPU's

2013-11-21 Thread Fan Du
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

Re: Need help in printing call stacks for all CPU's

2013-11-21 Thread Fan Du
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

kmap_high calls BUG()

2013-11-21 Thread Ritesh Ranjan
In the highmem.c file, the function kmap_high() does the following : ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

kmap_high calls BUG()

2013-11-21 Thread Ritesh Ranjan
*Sorry for the previous incomplete mail* In highmem.c, the function kmap_high() does the following : BUG_ON(pkmap_count[PKMAP_NR(vaddr)] 2); Why would this be a serious bug? Don't usable entry have pkmap_count[] value as 0. (in map_new_virtual() ) if (!pkmap_count[last_pkmap_nr])