From: Milan Svoboda <msvoboda@ra.rockwell.com>
To: linux-kernel@vger.kernel.org
Subject: Re: v2.6.20-rt1, yum/rpm
Date: Mon, 5 Feb 2007 16:06:46 +0100 [thread overview]
Message-ID: <OF7AB1DD4E.7E28CFD4-ONC1257279.0052B9E9-C1257279.0052EFF1@ra.rockwell.com> (raw)
On Feb 5, 7:50 am, Ingo Molnar <m...@elte.hu> wrote:
> i have released the v2.6.20-rt1 kernel, which can be downloaded from the
> usual place:
>
Clean boot for me on ARM ixp4xx (gcc-4.1.1, glibc-2.5, big endian,
softfloat).
High-res timers looks good.
However, I'm trying to use PI mutexes in userspace
(pthread_mutexattr_setprotocol =>
PTHREAD_PRIO_INHERIT) and found strange behaviour. It seems to me that
mutex
is not really locked, ie. first thread locks mutex then second thread also
locks the
same mutex! Then the second mutex unlock it and when the first thread
unlocks the
mutex error EPERM is returned.
What do you think, is it kernel or glibc problem? (Priority ceiling works
as expected.)
Is PTHREAD_PRIO_INHERIT supposed to work on my platform?
If there is anything else what would you like to see from my system, let
me know.
See logs from pi_tests-1.15 => classic_pi.c (I added code that test return
value from
pthread_mutex_lock/pthread_mutex_unlock):
# /mnt/clfs/opt/classic_pi --verbose
main: Priority Inheritance turned on
set_cpu_affinity: using processr 0
main: creating low priority thread
main: creating medium priority thread
main: creating high priority thread
main: releasing all threads
high_priority: running as FIFO thread at priority 97
high_priority: entering ready state
med_priority: running as FIFO thread at priority 96
med_priority: entering ready state
low_priority: running as FIFO thread at priority 95
low_priority: entering ready state
main: all threads initialized, waiting for mutex to be claimed
main: waiting for threads to finish
high_priority: starting inversion loop (1)
high_priority: entering start state (1)
med_priority: starting inversion loop (1)
med_priority: entering start state (1)
low_priority: starting inversion loop (1)
low_priority: entering start wait (1)
high_priority: entering running state
med_priority: entering elevate state
low_priority: claiming mutex
low_priority: mutex locked
low_priority: entering locked wait
high_priority: locking mutex
high_priority: got mutex
high_priority: unlocking mutex
high_priority: entering finish state
low_priority: entering elevated wait
med_priority: entering finish state
low_priority: unlocking mutex
low_priority: mutex unlock failed: 1
low_priority: entering finish wait
high_priority: entering exit state
med_priority: entering exit state
low_priority: entering exit state
main: all threads terminated!
main: test passed
And this is log from kernel (I added prink to sys_futex and do_futex):
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 1
do_futex: op == 1
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 1
do_futex: op == 1
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 1
do_futex: op == 1
sys_futex: op == 6
do_futex: op == 6
FUTEX_LOCK_PI
sys_futex: op == 7
do_futex: op == 7
FUTEX_UNLOCK_PI
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 1
do_futex: op == 1
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 1
do_futex: op == 1
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 0
do_futex: op == 0
sys_futex: op == 1
do_futex: op == 1
sys_futex: op == 1
do_futex: op == 1
next reply other threads:[~2007-02-05 15:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-05 15:06 Milan Svoboda [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-02-05 6:56 v2.6.20-rt1, yum/rpm Ingo Molnar
2007-02-05 9:18 ` Serge Belyshev
2007-02-05 9:02 ` Ingo Molnar
2007-02-05 10:36 ` Sunil Naidu
2007-02-05 10:42 ` Peter Zijlstra
2007-02-05 10:22 ` Ingo Molnar
2007-02-05 11:15 ` Sunil Naidu
2007-02-05 12:59 ` Michal Piotrowski
2007-02-05 13:47 ` Ingo Molnar
2007-02-05 21:29 ` Michal Piotrowski
2007-02-05 14:25 ` Karsten Wiese
2007-02-05 15:17 ` Parag Warudkar
2007-02-05 21:50 ` Michal Piotrowski
2007-02-06 0:11 ` Michal Piotrowski
2007-02-06 1:14 ` Daniel Walker
2007-02-06 10:10 ` Arjan van de Ven
2007-02-07 12:32 ` Ingo Molnar
2007-02-06 10:30 ` Sunil Naidu
2007-02-06 19:38 ` Chuck Harding
2007-02-06 20:08 ` K.R. Foley
2007-02-27 17:39 ` K.R. Foley
2007-02-28 8:11 ` Ingo Molnar
2007-02-28 10:16 ` K.R. Foley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OF7AB1DD4E.7E28CFD4-ONC1257279.0052B9E9-C1257279.0052EFF1@ra.rockwell.com \
--to=msvoboda@ra.rockwell.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.