On Wed, Jul 10, 2002 at 02:24:26PM +0900, Jonathan Khoo wrote: > However, I also realize that by adding unnecessary printk statements > will affect the system performance. How can I measure the "actual" > timings? Heisenburg's uncertainty principal plays a part in kernel development :) You will always be stuck with "bad" timings from measuring the timings. There is no way around that. However, by just storing the timings in a memory buffer to be retrieved later (say, through a character device, ioctl, /proc file, sysctl, or your own filesystem) _AFTER_ you are done doing whatever it is you care about, ought to help your timing immensely. printk is just so blasted slow. -- http://sardonix.org/
Attachment:
pgp00120.pgp
Description: PGP signature