* [Xenomai-core] __pse51_get_current_prio
@ 2008-09-12 14:36 Jan Kiszka
2008-09-12 15:22 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2008-09-12 14:36 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai-core
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
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-core] __pse51_get_current_prio
2008-09-12 14:36 [Xenomai-core] __pse51_get_current_prio Jan Kiszka
@ 2008-09-12 15:22 ` Gilles Chanteperdrix
2008-09-12 15:55 ` Jan Kiszka
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-12 15:22 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> 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)?
I had plan to remove this from unit_mutex. OTOH, it may come in handy if
we start breaking the xnsynchs...
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [Xenomai-core] __pse51_get_current_prio
2008-09-12 15:22 ` Gilles Chanteperdrix
@ 2008-09-12 15:55 ` Jan Kiszka
2008-09-12 17:18 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2008-09-12 15:55 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai-core
Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> 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)?
>
> 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
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-core] __pse51_get_current_prio
2008-09-12 15:55 ` Jan Kiszka
@ 2008-09-12 17:18 ` Gilles Chanteperdrix
2008-09-13 6:52 ` Jan Kiszka
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-12 17:18 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Gilles Chanteperdrix wrote:
>> Jan Kiszka wrote:
>>> 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)?
>> 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...
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-core] __pse51_get_current_prio
2008-09-12 17:18 ` Gilles Chanteperdrix
@ 2008-09-13 6:52 ` Jan Kiszka
0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2008-09-13 6:52 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]
Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> Gilles Chanteperdrix wrote:
>>> Jan Kiszka wrote:
>>>> 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)?
>>> 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...
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-13 6:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-12 14:36 [Xenomai-core] __pse51_get_current_prio Jan Kiszka
2008-09-12 15:22 ` Gilles Chanteperdrix
2008-09-12 15:55 ` Jan Kiszka
2008-09-12 17:18 ` Gilles Chanteperdrix
2008-09-13 6:52 ` Jan Kiszka
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.