Re: Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-7

From: Rui Nuno Capela
Date: Wed Dec 01 2004 - 07:49:22 EST


Ingo Molnar wrote:
>
> * Rui Nuno Capela <rncbc@xxxxxxxxx> wrote:
>
>> > if (!(count++ & 1))
>> > gettimeofday(0,1);
>> > }
>
>> Done that.
>>
>> New XRUN traces are attached, while running RT-V0.7.31-15 now.
>> However, I don't seem to get any notorious difference on the results,
>> since previous ones. All latencies traced ca. 26-27 usecs.
>
> ah, found the reason why the trace length didnt improve:
>
> + { // Trigger off trace every other poll...
> + static unsigned int xruntrace_count = 0;
> + if ((xruntrace_count++ % 1) == 0)
> + gettimeofday(0,1);
> + }
>
> this should either be '& 1' as i originally suggested, or '% 2'. The way
> it is right now it will stop the trace every time - i.e. what we had
> before.
>
> so please disregard my freerunning suggestionsand try the two-periods
> solution first.
>

Very good eyes! It was all my mistake. Sorry, sorry. It was a sure typo
after all, the '%' key is right next to '&', at least on my on my keyboard
:)

Will correct it and bbl...
--
rncbc aka Rui Nuno Capela
rncbc@xxxxxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/