__pse51_get_current_prio
Hi Gilles,
we've integrated your unit_mutex and our native test, but now we stumbled over that __pse51_get_current_prio special syscall to check the dynamic thread priority (during pi tests). I guess that service only exists in your private patch queue? What are your plans about this in case we want to push the mutex test into mainline? Or should we check the thread prio indirectly (by waking up a lower-prio thread)?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
Quoted 8 lines · Jan Kiszka
Hi Gilles,
we've integrated your
unit_mutexand our native test, but now we stumbled over that__pse51_get_current_priospecial syscall to check the dynamic thread priority (during pi tests). I guess that service only exists in your private patch queue? What are your plans about this in case we want to push the mutex test into mainline? Or should we check the thread prio indirectly (by waking up a lower-prio thread)?
I had plan to remove this from unit_mutex. OTOH, it may come in handy if we start breaking the xnsynchs...
Signature · 1 line
Gilles.
Quoted 10 lines · Gilles Chanteperdrix
Quoted 8 lines · Jan Kiszka
Hi Gilles,
we've integrated your
unit_mutexand our native test, but now we stumbled over that__pse51_get_current_priospecial syscall to check the dynamic thread priority (during pi tests). I guess that service only exists in your private patch queue? What are your plans about this in case we want to push the mutex test into mainline? Or should we check the thread prio indirectly (by waking up a lower-prio thread)?
Quoted 2 lines
I had plan to remove this from
unit_mutex. OTOH, it may come in handy if we start breaking the xnsynchs...
Maybe one could invent some "pthread_inquire_np" so that the usefulness of this extension increases beyond unit tests.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
Quoted 10 lines · Jan Kiszka
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Jan Kiszka
Hi Gilles,
we've integrated your
unit_mutexand our native test, but now we stumbled over that__pse51_get_current_priospecial syscall to check the dynamic thread priority (during pi tests). I guess that service only exists in your private patch queue? What are your plans about this in case we want to push the mutex test into mainline? Or should we check the thread prio indirectly (by waking up a lower-prio thread)?
Quoted 5 lines
Quoted 2 lines
I had plan to remove this from
unit_mutex. OTOH, it may come in handy if we start breaking the xnsynchs...Maybe one could invent some "
pthread_inquire_np" so that the usefulness of this extension increases beyond unit tests.
Ok. What about splitting struct sched_param contents into two (16 bits) members ? This way we would get the two priorities with an only pthread_get_schedparam syscall.
On the other hand, when using pthread_inquire_np, we could get some more insteresting information such as the task name, its current wchan, the mutexes it holds etc...
Signature · 1 line
Gilles.
Quoted 16 lines · Gilles Chanteperdrix
Quoted 10 lines · Jan Kiszka
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Jan Kiszka
Hi Gilles,
we've integrated your
unit_mutexand our native test, but now we stumbled over that__pse51_get_current_priospecial syscall to check the dynamic thread priority (during pi tests). I guess that service only exists in your private patch queue? What are your plans about this in case we want to push the mutex test into mainline? Or should we check the thread prio indirectly (by waking up a lower-prio thread)?Quoted 4 lines
Quoted 2 lines
I had plan to remove this from
unit_mutex. OTOH, it may come in handy if we start breaking the xnsynchs...Maybe one could invent some "
pthread_inquire_np" so that the usefulness of this extension increases beyond unit tests.
Quoted 6 lines
Ok. What about splitting struct
sched_paramcontents into two (16 bits) members ? This way we would get the two priorities with an onlypthread_get_schedparamsyscall.
On the other hand, when usingpthread_inquire_np, we could get some more insteresting information such as the task name, its current wchan, the mutexes it holds etc...
The latter use was precisely my idea. We would be talking about a debugging interface via which we could collect as much (Xenomai-specific) information about some thread as available (and relevant to user space).
Jan