linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jim Nelson <james4765@cwazy.co.uk>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Coywolf Qi Hunt <coywolf@gmail.com>,
	Jesper Juhl <juhl-lkml@dif.dk>,
	David Howells <dhowells@redhat.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: printk loglevel policy?
Date: Sun, 02 Jan 2005 14:01:23 -0500	[thread overview]
Message-ID: <41D84503.2040808@cwazy.co.uk> (raw)
In-Reply-To: <1104675855.15004.56.camel@localhost.localdomain>

Alan Cox wrote:
> On Gwe, 2004-12-31 at 02:20, Coywolf Qi Hunt wrote:
> 
>>Hi all, 
>>
>>Recently, I've seen a lot of add loglevel to printk patches. 
>>grep 'printk("' -r | wc shows me 2433. There are probably 2433 printk
>>need to patch, is it?  What's this printk loglevel policy, all these
> 
> 
> You would need to work out which were at the start of a newline - most
> of them are probably just fine and valid
> 

That reminds me of a question I've had inthe back of my head.  When you have a SMP 
system wouldn't it be possible to have:

CPU 1 (running func1)	CPU 2 (running func2)
  |			 |
  printk ("foo...");	 |
  |			printk ("bleh\n");
  printk ("finished\n);	 |
			printk ("readout from bleh\n";

Is that possible?  Especially if the process on CPU 1 slept on a semaphore or 
something similar?

Or does printk() do some tracking that I didn't see as to where in the kernel the 
strings are coming from?

  reply	other threads:[~2005-01-02 19:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-31  2:02 [patch] add loglevel to printk in fs/afs/cmservice.c Jesper Juhl
2004-12-31  2:20 ` printk loglevel policy? Coywolf Qi Hunt
2004-12-31  4:07   ` Jim Nelson
2004-12-31  4:34     ` Jesper Juhl
2005-01-02 14:36   ` Alan Cox
2005-01-02 19:01     ` Jim Nelson [this message]
2005-01-02 21:41       ` Randy.Dunlap
2005-01-03  3:17         ` Keith Owens
2005-01-03  3:52           ` Randy.Dunlap
2005-01-03  4:44             ` Jim Nelson
2005-01-04 10:46           ` David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41D84503.2040808@cwazy.co.uk \
    --to=james4765@cwazy.co.uk \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=coywolf@gmail.com \
    --cc=dhowells@redhat.com \
    --cc=juhl-lkml@dif.dk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).