From: Gilles Chanteperdrix MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18004.38979.30479.570875@domain.hid> Date: Wed, 23 May 2007 21:38:43 +0200 In-Reply-To: <18004.38669.551814.469582@domain.hid> References: <18004.38669.551814.469582@domain.hid> Subject: Re: [Xenomai-help] Artificial task load List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ROSSIER Daniel , xenomai@xenomai.org Gilles Chanteperdrix wrote: > ROSSIER Daniel wrote: > > Hello, > > > > > > > > Maybe this issue has already been raised up, anyway... > > > > What would be the best way to simulate a task load in Xenomai RT tasks, > > avoiding the rt_timer_spin() which is not appropriate > > > > when multiple task context switching occur? > > > > (I've already experimented a simple loop with rt_timer_spin(1), but it > > is not reasonable since the loop instructions consumes some CPU time as > > well). > > > > > > > > Thanks for any advice. > > Sorry, but I do not understand what is wrong with rt_timer_spin(). If > you do not want to use this service, maybe you can use > xnarch_get_cpu_tsc() (or __xn_rdtsc() in user-space) ? Got it, you want a service that really burns a given quantity of CPU. What about linux udelay ? -- Gilles Chanteperdrix.