* Traversing Runqueu - CFS
@ 2011-01-13 1:34 Jestin Joy
2011-01-13 5:40 ` Mulyadi Santosa
0 siblings, 1 reply; 2+ messages in thread
From: Jestin Joy @ 2011-01-13 1:34 UTC (permalink / raw)
To: kernelnewbies
Hi,
Looking for a way to traverse the runqueue, so that I could get the contents of the runqueue. Initial reading tells that sched.h has ched_entity structure, which holds some of the data for it, like the
struct rb_node run_node;
Also read that redblack tree is used to hold the elements with "vruntime" as the index of it.
Could anyone give a way forward to doing this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110113/b093cc75/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Traversing Runqueu - CFS
2011-01-13 1:34 Traversing Runqueu - CFS Jestin Joy
@ 2011-01-13 5:40 ` Mulyadi Santosa
0 siblings, 0 replies; 2+ messages in thread
From: Mulyadi Santosa @ 2011-01-13 5:40 UTC (permalink / raw)
To: kernelnewbies
Hi Jestin...
On Thu, Jan 13, 2011 at 08:34, Jestin Joy <jestinjoy@hotmail.com> wrote:
> Hi,
>
> ??? Looking for a way to traverse the runqueue, so that I could get the
> contents of the runqueue. Initial reading tells that sched.h has ched_entity
> structure, which holds some of the data for it, like the
>
> struct rb_node??? ??? run_node;
I think, for simple traversing, you could just use for_each_process,
unless you wanna find out something related to the rb tree. And, with
my limited knowledge, rbtree.h doesn't include any traversing
function.
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-13 5:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-13 1:34 Traversing Runqueu - CFS Jestin Joy
2011-01-13 5:40 ` Mulyadi Santosa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.