Re: [Xenomai-help] Get ready queue

2009-07-21 Thread Thiago Lima
Thanks for all suggestions and help. Well, i have extended xenomai nucleus with some data (wcet, activation period (latency)). Then, i have created system calls so that applications can inform to system these parameters. All tasks in the system should pass for schedulability test because we need

Re: [Xenomai-help] Get ready queue

2009-07-17 Thread Gilles Chanteperdrix
Thiago Lima wrote: > I am doing an schedulability test of real time processes in Xenomai. (...) > My question is: how can i get all ready xenomai tasks ? Because i need > to get the amount of threads to do this test. > > Sorry for my last email. I have not so much time to write and it was vague.

Re: [Xenomai-help] Get ready queue

2009-07-17 Thread Philippe Gerum
On Fri, 2009-07-17 at 08:18 -0300, Thiago Lima wrote: > I am doing an schedulability test of real time processes in Xenomai. > So that, when a new task is started in system, i need to get all > threads from system, including the new one and make a test to decide > if this workset is schedulable. >

Re: [Xenomai-help] Get ready queue

2009-07-17 Thread Thiago Lima
I am doing an schedulability test of real time processes in Xenomai. So that, when a new task is started in system, i need to get all threads from system, including the new one and make a test to decide if this workset is schedulable. I have a linux kernel module with a hook that is called wheneve

Re: [Xenomai-help] Get ready queue

2009-06-10 Thread Gilles Chanteperdrix
Thiago Lima wrote: > Sorry, i didnt understand you answer. The question was vague, so was the answer. > I get the global queue doing this: > > threads = &pod->threadq;// GLOBAL QUEUE > holder = getheadq(&nkpod->threadq); //HEAD NODE These are internal data, you are not supposed to access

Re: [Xenomai-help] Get ready queue

2009-06-10 Thread Thiago Lima
Sorry, i didnt understand you answer. I get the global queue doing this: threads = &pod->threadq;// GLOBAL QUEUE holder = getheadq(&nkpod->threadq); //HEAD NODE thanks for helping. On Fri, Jun 5, 2009 at 10:09 PM, Gilles Chanteperdrix < gilles.chanteperd...@xenomai.org> wrote: > Thiago Lima

Re: [Xenomai-help] Get ready queue

2009-06-05 Thread Gilles Chanteperdrix
Thiago Lima wrote: > Hi everybody, > > I have a function in a linux kernel module that is called whenever a > function in xenomai domain starts. In this moment, i need to get the ready > queue with all ready threads of xenomai. > Do you realize how can i do that ? If you are using a skin, then yo

[Xenomai-help] Get ready queue

2009-06-05 Thread Thiago Lima
Hi everybody, I have a function in a linux kernel module that is called whenever a function in xenomai domain starts. In this moment, i need to get the ready queue with all ready threads of xenomai. Do you realize how can i do that ? Thanks, -- Thiago Lima Silva Graduando - Ciência da Computaçã