[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: printk does not seem to work when called from schedule()
KERN_EMERG as I know broadcasts on all open sessions on a machine.
Thanks,
Vishwas
-----Original Message-----
From: kernelnewbies-bounce@xxxxxxxxxxxx
[mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Eugene Teo
Sent: Monday, April 05, 2004 11:58 AM
To: Hareesh Nagarajan
Cc: kernelnewbies
Subject: Re: printk does not seem to work when called from schedule()
<quote sender="Hareesh Nagarajan">
> 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.
First, are you very sure that the if statement will be true, and that
your printk will be executed?
Second, I believe KERN_EMERG prints to your terminal. Perhaps your
syslogd logs those that are of KERN_DEBUG.
Looks interesting. I look forward to what you are working on. Keep me
updated.
> 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
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/