Check 'dmesg'. Does anything appear there? -Vishwas -----Original Message----- From: kernelnewbies-bounce@nl.linux.org [mailto:kernelnewbies-bounce@nl.linux.org] On Behalf Of Hareesh Nagarajan Sent: Monday, April 05, 2004 8:21 AM To: kernelnewbies Subject: printk does not seem to work when called from schedule() Hi: I have made a few non invasive changes to the definition of schedule() found in kernel/sched.c in Kernel 2.6.3. I would greatly appreciate it if you could look at it, off this link. http://puggy.symonds.net/~hareesh/ibm/mysched.c The purpose of my additions is to find out the number of cycles spent by a processor while executing schedule() inside the kernel within every second. I start doing this in the 2nd minute and end it at the 5th minute, at which point I write out the entire contents of the bucket using printk (Level. KERN_EMERG). [The bucket is an array having 1440 elements] Now my problem is that the message(s) sent to printk does not seem to appear in /var/log/messages after the 5th minute. What could be the problem? Is there something incorrect in the way I have gone about things? I have syslog running as my logger: hareesh 1310 1 0 19:59 ? 00:00:00 /usr/sbin/syslogd -m 0 TIA Hareesh Nagarajan WEB: http://puggy.symonds.net/~hareesh -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/