Messages in this thread | | | Date | Wed, 1 Dec 2004 12:47:09 -0000 (WET) | Subject | Re: Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-7 | From | "Rui Nuno Capela" <> |
| |
Ingo Molnar wrote: > > * Rui Nuno Capela <rncbc@rncbc.org> 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@rncbc.org
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |