Re: Guidelines to make RT patch for driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 30 Mar 2012, Mikhail Lodigin wrote:

> Hello,
> on my AT91SAM9263 based board RT patched kernel works great! Thanks to all
> involved. But when ethernet is in use - latency, measured by cyclictest, reach
> 7000000 and beyond.
> The ethernet driver for this processor is macb.c. (in 3.2 it is in
> drivers/net/ethernet/cadence, in 3.0 it is in drivers/net/).
> I'm ready to find out how to RT-patch it and of course share the resulted
> patch, but I need some starting point for patching drivers besides general
> RT-stuff.  I've noticed that some network drivers patched in one way and
> others a in another. Maybe some discussion existed which I didn't found. So
> any help would be greatly appreciated.

There is no general recipe. The best way to do it is to use the
tracer. cyclictest has a commandline option for stopping the trace
when the latency exceeds a given treshold.

     cyclictest -p80 -n -f -b 1000

will start the function tracer and stop it once the latency exceeds
1000us.

Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux