print contents of runqueue

kashish bhatia koolest77 at gmail.com
Wed Oct 19 05:55:23 EDT 2011


Hi,

I want to print contents of runqueue of my current processor.
I got the pointer to current task_struct.

To get runqueue, I called task_rq().
When compiled the module, it gave an error.

Actually struct runqueue and task_rq() is not in any header file. It is
present in kernel/sched.c

Is there any way to access this structure without making changes to kernel .
-- 
Regards,
Kashish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111019/4a734d5e/attachment.html 


More information about the Kernelnewbies mailing list