public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* printk's - i dont want any limit howto?
@ 2006-06-01  7:25 Ram
  2006-06-01 13:38 ` Paulo Marques
  0 siblings, 1 reply; 5+ messages in thread
From: Ram @ 2006-06-01  7:25 UTC (permalink / raw)
  To: linux-kernel

Hi,
  I have a driver full of printks. i am trying to understand the way
the driver functions using printks

  So, i have a situation where i want all the printk's to be printed
come whatever.


   I dont want any rate limiting or anything else that prevents from
my printks from appearing on the screen or dmesg.


 Its really confusing when only one of your printks appear and some
just dont appear even though you expect them to appear.



  Is there any way to make all the printks to appear come what may?.
If so, how do  i do it?.


  Went through the printk.c am not sure setting the
printk_ratelimit_jiffies = 0 and printk_ratelimit_burst= 1000 will do?

  am not sure if printk_ratelimit_jiffies = 0 is valid.


please advice.


Regards,
sriram

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

* Re: printk's - i dont want any limit howto?
  2006-06-01  7:25 printk's - i dont want any limit howto? Ram
@ 2006-06-01 13:38 ` Paulo Marques
  2006-06-02  7:37   ` Ram
  0 siblings, 1 reply; 5+ messages in thread
From: Paulo Marques @ 2006-06-01 13:38 UTC (permalink / raw)
  To: Ram; +Cc: linux-kernel

Ram wrote:
> Hi,

Hi,

>  I have a driver full of printks. i am trying to understand the way
> the driver functions using printks
> 
>  So, i have a situation where i want all the printk's to be printed
> come whatever.

That is the normal behavior.

>   I dont want any rate limiting or anything else that prevents from
> my printks from appearing on the screen or dmesg.
> 
> Its really confusing when only one of your printks appear and some
> just dont appear even though you expect them to appear.
> 
>  Is there any way to make all the printks to appear come what may?.
> If so, how do  i do it?.
> 
>  Went through the printk.c am not sure setting the
> printk_ratelimit_jiffies = 0 and printk_ratelimit_burst= 1000 will do?
> 
>  am not sure if printk_ratelimit_jiffies = 0 is valid.

These are just used by "printk_ratelimit()" in constructs such as:

if (printk_ratelimit())
         printk(KERN_INFO "some message that may appear very often");

If you simply use printk, there should be no rate limiting.

> please advice.

I would say your printk's are not getting called at all or the log level 
of the messages is not sufficient for them to appear on the console or 
on the log. See Documentation/filesystems/proc.txt -> 
proc/sys/kernel/printk and syslog(2) for more documentation on this.

I hope this helps,

-- 
Paulo Marques - www.grupopie.com

Pointy-Haired Boss: I don't see anything that could stand in our way.
            Dilbert: Sanity? Reality? The laws of physics?

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

* Re: printk's - i dont want any limit howto?
  2006-06-01 13:38 ` Paulo Marques
@ 2006-06-02  7:37   ` Ram
  2006-06-02  8:34     ` Bernd Eckenfels
  2006-06-02 14:40     ` Aurélien Francillon
  0 siblings, 2 replies; 5+ messages in thread
From: Ram @ 2006-06-02  7:37 UTC (permalink / raw)
  To: Paulo Marques; +Cc: linux-kernel

Hi,
  Actually even though the printks are getting executed.

  ONLY some appear. I have given both KERN_ERR and KERN_DEBUG


   Its not the log level problem. probably the buffer or something else.
   am not sure on that.

   i have given printk_ratelimit_burst= 1000 ; printk_ratelimit_jiffies = 0 ;


   but it does not work.


   Please Advice,


   Regards,
   sriram

On 6/1/06, Paulo Marques <pmarques@grupopie.com> wrote:
> Ram wrote:
> > Hi,
>
> Hi,
>
> >  I have a driver full of printks. i am trying to understand the way
> > the driver functions using printks
> >
> >  So, i have a situation where i want all the printk's to be printed
> > come whatever.
>
> That is the normal behavior.
>
> >   I dont want any rate limiting or anything else that prevents from
> > my printks from appearing on the screen or dmesg.
> >
> > Its really confusing when only one of your printks appear and some
> > just dont appear even though you expect them to appear.
> >
> >  Is there any way to make all the printks to appear come what may?.
> > If so, how do  i do it?.
> >
> >  Went through the printk.c am not sure setting the
> > printk_ratelimit_jiffies = 0 and printk_ratelimit_burst= 1000 will do?
> >
> >  am not sure if printk_ratelimit_jiffies = 0 is valid.
>
> These are just used by "printk_ratelimit()" in constructs such as:
>
> if (printk_ratelimit())
>          printk(KERN_INFO "some message that may appear very often");
>
> If you simply use printk, there should be no rate limiting.
>
> > please advice.
>
> I would say your printk's are not getting called at all or the log level
> of the messages is not sufficient for them to appear on the console or
> on the log. See Documentation/filesystems/proc.txt ->
> proc/sys/kernel/printk and syslog(2) for more documentation on this.
>
> I hope this helps,
>
> --
> Paulo Marques - www.grupopie.com
>
> Pointy-Haired Boss: I don't see anything that could stand in our way.
>             Dilbert: Sanity? Reality? The laws of physics?
>

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

* Re: printk's - i dont want any limit howto?
  2006-06-02  7:37   ` Ram
@ 2006-06-02  8:34     ` Bernd Eckenfels
  2006-06-02 14:40     ` Aurélien Francillon
  1 sibling, 0 replies; 5+ messages in thread
From: Bernd Eckenfels @ 2006-06-02  8:34 UTC (permalink / raw)
  To: linux-kernel

Ram <vshrirama@gmail.com> wrote:
>  Actually even though the printks are getting executed.
>  ONLY some appear. I have given both KERN_ERR and KERN_DEBUG

do u use "dmesg" to see them? so you do not have to be sure your syslog is
logging them (and not aggregating some).

>   i have given printk_ratelimit_burst= 1000 ; printk_ratelimit_jiffies = 0 ;

If ratelimit is the problem I think it will write a message that you missed
some output as level warning. So it is unlikely the issue.

Gruss
Bernd

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

* Re: printk's - i dont want any limit howto?
  2006-06-02  7:37   ` Ram
  2006-06-02  8:34     ` Bernd Eckenfels
@ 2006-06-02 14:40     ` Aurélien Francillon
  1 sibling, 0 replies; 5+ messages in thread
From: Aurélien Francillon @ 2006-06-02 14:40 UTC (permalink / raw)
  To: Ram; +Cc: Paulo Marques, linux-kernel

On Friday 02 June 2006 09:37, Ram wrote:
> Hi,
>   Actually even though the printks are getting executed.
>
>   ONLY some appear. I have given both KERN_ERR and KERN_DEBUG
>
>
>    Its not the log level problem. probably the buffer or something else.
>    am not sure on that.
...

Increasing the "Kernel log buffer size" (under Kernel hacking config menu) to 
a bigger value helps to prevent overwriting the kernel circular buffer.
Using synchronous writes in syslog usually helps to get all the messages 
written to disk before a kernel crash
HTH,
Aurélien


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

end of thread, other threads:[~2006-06-02 14:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-01  7:25 printk's - i dont want any limit howto? Ram
2006-06-01 13:38 ` Paulo Marques
2006-06-02  7:37   ` Ram
2006-06-02  8:34     ` Bernd Eckenfels
2006-06-02 14:40     ` Aurélien Francillon

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