From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <506EB4D2.7060606@wanadoo.fr> Date: Fri, 05 Oct 2012 12:22:10 +0200 From: Thierry Bultel MIME-Version: 1.0 References: <506EACBD.8090307@wanadoo.fr> <506EB20A.5010107@xenomai.org> In-Reply-To: <506EB20A.5010107@xenomai.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai] nanosleep and clock_nanosleep increase MSW counter without SIGXCPU List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org Le 05/10/2012 12:10, Gilles Chanteperdrix a =C3=A9crit : > 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.patc= h, >> 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) !=3D 0) >> { >> LOG("pthread_set_mode_np FAILED\n"); >> exit(0); >> } >> >> for (;;) >> { >> struct timespec delay =3D { 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) !=3D 0 ) { printf("ERROR: on mlockall errno=3D%d\n", errno); goto failure; } #endif /* __XENO__ */