printk does not seem to work when called from schedule()

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

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux