Re: Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-7
From: Adam Heath
Date: Wed Dec 01 2004 - 13:21:46 EST
On Wed, 1 Dec 2004, Ingo Molnar wrote:
>
> * Eran Mann <emann@xxxxxxx> wrote:
>
> > Seems to be fixed by the patch below:
> >
> > --- kernel/latency.c.orig 2004-12-01 10:21:45.000000000 +0200
> > +++ kernel/latency.c 2004-12-01 10:11:37.000000000 +0200
> > @@ -762,7 +762,9 @@
> > tr->critical_sequence = max_sequence;
> > tr->preempt_timestamp = cycles();
> > tr->early_warning = 0;
> > +#ifdef CONFIG_LATENCY_TRACE
> > __trace(CALLER_ADDR0, parent_eip);
> > +#endif
>
> thanks, applied it and uploaded -V0.7.31-16.
Wouldn't it be better to change the definition of __trace()? Always have it
defined, but make it empty if CONFIG_LATENCY_TRACE isn't set?
It'd keep the code from being littered with ifdef.
-
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/