From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Philippe Gerum <rpm@xenomai.org>
Cc: Xenomai@xenomai.org
Subject: Re: [Xenomai] xenomai-2.6.0 instrumentation commands not executing
Date: Wed, 06 Jun 2012 15:41:01 +0200 [thread overview]
Message-ID: <4FCF5DED.8060007@xenomai.org> (raw)
In-Reply-To: <4FCF5A4C.60704@xenomai.org>
On 06/06/2012 03:25 PM, Philippe Gerum wrote:
> On 06/06/2012 03:18 PM, Gilles Chanteperdrix wrote:
>> On 06/06/2012 02:28 PM, Philippe Gerum wrote:
>>> On 06/06/2012 11:48 AM, Philippe Gerum wrote:
>>>> On 06/06/2012 11:18 AM, ali hagigat wrote:
>>>>> Much appreciate for the reply, Mr. Gerum. Here is the result of ldd
>>>>> command:
>>>>>
>>>>
>>>> http://www.xenomai.org/pipermail/xenomai-help/2011-12/msg00012.html
>>>
>>> Alternatively, this patch may work as well (not tested, but this
>>> looks like a former issue we had with aggressive optimizers):
>>>
>>> diff --git a/src/skins/posix/init.c b/src/skins/posix/init.c
>>> index 7a338a0..9c7849e 100644
>>> --- a/src/skins/posix/init.c
>>> +++ b/src/skins/posix/init.c
>>> @@ -43,6 +43,7 @@ void pse51_clock_init(int);
>>> static __attribute__ ((constructor))
>>> void __init_posix_interface(void)
>>> {
>>> + volatile pthread_t tid = pthread_self();
>>> #ifndef CONFIG_XENO_LIBS_DLOPEN
>>> struct sched_param parm;
>>> int policy;
>>> @@ -80,14 +81,14 @@ void __init_posix_interface(void)
>>>
>>> /* Don't use auto-shadowing if we are likely invoked from dlopen. */
>>> #ifndef CONFIG_XENO_LIBS_DLOPEN
>>> - err = __real_pthread_getschedparam(pthread_self(),&policy,&parm);
>>> + err = __real_pthread_getschedparam(tid,&policy,&parm);
>>> if (err) {
>>> fprintf(stderr, "Xenomai Posix skin init: "
>>> "pthread_getschedparam: %s\n", strerror(err));
>>> exit(EXIT_FAILURE);
>>> }
>>>
>>> - err = __wrap_pthread_setschedparam(pthread_self(), policy,&parm);
>>> + err = __wrap_pthread_setschedparam(tid, policy,&parm);
>>> if (err) {
>>> fprintf(stderr, "Xenomai Posix skin init: "
>>> "pthread_setschedparam: %s\n", strerror(err));
>>
>> There should not be any issue here, as the pthread_self() is passed as
>> an argument to the called functions, the syscall is not inlined directly.
>>
>
> Did you get any disassembly of the faulty code when suggesting
> -fno-omit-frame-pointer last time you did?
>
No, but I had experienced the problem first hand.
--
Gilles.
next prev parent reply other threads:[~2012-06-06 13:41 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-06 7:40 [Xenomai] xenomai-2.6.0 instrumentation commands not executing ali hagigat
2012-06-06 8:30 ` Philippe Gerum
2012-06-06 9:06 ` ali hagigat
2012-06-06 9:11 ` Philippe Gerum
2012-06-06 9:18 ` ali hagigat
2012-06-06 9:48 ` Philippe Gerum
2012-06-06 10:47 ` ali hagigat
2012-06-06 12:06 ` Philippe Gerum
2012-06-06 12:28 ` Philippe Gerum
2012-06-06 13:18 ` Gilles Chanteperdrix
2012-06-06 13:25 ` Philippe Gerum
2012-06-06 13:41 ` Gilles Chanteperdrix [this message]
2012-06-06 13:53 ` Philippe Gerum
2012-06-06 13:55 ` Gilles Chanteperdrix
2012-06-06 14:02 ` Gilles Chanteperdrix
2012-06-06 14:27 ` Gilles Chanteperdrix
2012-06-06 14:51 ` Philippe Gerum
2012-06-06 15:03 ` Philippe Gerum
2012-06-06 15:15 ` Gilles Chanteperdrix
2012-06-06 15:21 ` Philippe Gerum
2012-06-06 17:57 ` Gilles Chanteperdrix
2012-06-06 18:00 ` Gilles Chanteperdrix
2012-06-08 9:20 ` Philippe Gerum
2012-06-08 9:25 ` Gilles Chanteperdrix
2012-06-08 9:29 ` Philippe Gerum
2012-06-08 9:31 ` Philippe Gerum
2012-06-08 9:35 ` Gilles Chanteperdrix
2012-06-09 8:59 ` ali hagigat
2012-07-03 16:01 ` Marcin Kuśka
2012-07-03 16:51 ` Gilles Chanteperdrix
2012-07-06 15:42 ` Marcin Kuśka
2012-07-06 15:48 ` Gilles Chanteperdrix
2012-07-09 15:34 ` Marcin Kuśka
2012-07-09 15:48 ` Christophe Blaess
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=4FCF5DED.8060007@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Xenomai@xenomai.org \
--cc=rpm@xenomai.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.