mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* problems with printk's
@ 2006-04-25 12:00 Ram
  2006-04-25 13:16 ` linux-os (Dick Johnson)
  0 siblings, 1 reply; 3+ messages in thread
From: Ram @ 2006-04-25 12:00 UTC (permalink / raw)
  To: linux-kernel

Hi,
  i am studing a driver's code.

  i have added a line printk (KERN_DEBUG __FUNCTION)  which is supposed to
  print the name of the function.

  I want to trace the program - what is happening.


  When i see the output of the driver using dmesg

  Only some of the prints are visible (some of them are not printed
even though they
   must get printed. i dont know why this is happening.

  Is there any limit on printk (like number of messages....)


  How do i disable (ie printk should print irrespective of any limit
or anything).


  Regard,,
   sriram

^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: problems with printk's
@ 2006-04-25 12:09 biswa.nayak
  0 siblings, 0 replies; 3+ messages in thread
From: biswa.nayak @ 2006-04-25 12:09 UTC (permalink / raw)
  To: vshrirama, linux-kernel

 
  When i see the output of the driver using dmesg

  Only some of the prints are visible (some of them are not printed even
though they
   must get printed. i dont know why this is happening.

  Is there any limit on printk (like number of messages....)


  How do i disable (ie printk should print irrespective of any limit or
anything).


Please check '/proc/sys/kernel/printk_ratelimit' and
'/proc/sys/kernel/printk_ratelimit_burst'. The printk_ratelimit tells
your system to stop logging messages for 'n' number of seconds and
printk_ratelimit_burst tells the number of messages to allow before rate
limiting. You can change these values to allow more messages.

Warning: You can generate so many messages that the system can get
unresponsive, and the buffer for kernel log message is also of fixed
sized circular buffer. So if you write too many messages, you might
overwrite some of your old useful logs too. Hope this helps.

~Biswa

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-25 13:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-25 12:00 problems with printk's Ram
2006-04-25 13:16 ` linux-os (Dick Johnson)
2006-04-25 12:09 biswa.nayak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®