All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Bultel <thierry.bultel@wanadoo.fr>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] nanosleep and clock_nanosleep increase MSW counter without SIGXCPU
Date: Fri, 05 Oct 2012 12:22:10 +0200	[thread overview]
Message-ID: <506EB4D2.7060606@wanadoo.fr> (raw)
In-Reply-To: <506EB20A.5010107@xenomai.org>

Le 05/10/2012 12:10, Gilles Chanteperdrix a écrit :
> On 10/05/2012 11:47 AM, Thierry Bultel wrote:
>> Hi,
>>
>> My config is linux-3.2.21+xenomai-2.6.1 ; ipipe-core-3.2.21-arm-1.patch,
>> on qemu-system-arm ; versatile express. I have CONFIG_SMP to NO
>>
>> My test case is quite simple.
>> The main process is as such:
>>
>> -----------------
>>
>> int main ( ......
>>
>>
>> pthread_set_name_np(pthread_self(), "MAIN PROCESS");
>>
>> if (pthread_set_mode_np(0, PTHREAD_WARNSW) != 0)
>> {
>>     LOG("pthread_set_mode_np FAILED\n");
>>     exit(0);
>> }
>>
>> for (;;)
>> {
>>     struct timespec delay = { 10, 0 };
>>     nanosleep(&delay,NULL);
>> }
> mlockall missing.
>


Sorry , Yes it is, I have not written down all the init part, (.....   )

but basically it is

#ifdef __XENO__

    /* Initialize realtime logging */

    rt_print_auto_init(1);

    /* Disable paging */

    if( mlockall(MCL_CURRENT | MCL_FUTURE) != 0 )

    {

        printf("ERROR: on mlockall errno=%d\n", errno);

        goto failure;

    }
#endif /* __XENO__ */




  reply	other threads:[~2012-10-05 10:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-05  9:47 [Xenomai] nanosleep and clock_nanosleep increase MSW counter without SIGXCPU Thierry Bultel
2012-10-05 10:10 ` Gilles Chanteperdrix
2012-10-05 10:22   ` Thierry Bultel [this message]
2012-10-05 12:31 ` Gilles Chanteperdrix
2012-10-05 13:23   ` Thierry Bultel
2012-10-05 13:30     ` Gilles Chanteperdrix
2012-10-08 14:42       ` Thierry Bultel

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=506EB4D2.7060606@wanadoo.fr \
    --to=thierry.bultel@wanadoo.fr \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@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.