From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <506EB20A.5010107@xenomai.org> Date: Fri, 05 Oct 2012 12:10:18 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <506EACBD.8090307@wanadoo.fr> In-Reply-To: <506EACBD.8090307@wanadoo.fr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Thierry Bultel Cc: xenomai@xenomai.org 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. -- Gilles.