From: Scott Russell <catfather@donpoo.net>
To: Siva Prasad <sprasad@bivio.net>
Cc: Clemens Koller <clemens.koller@anagramm.de>,
David Newall <david@davidnewall.com>,
linux-kernel@vger.kernel.org
Subject: RE: printf internals
Date: Wed, 19 Dec 2007 18:31:25 -0500 [thread overview]
Message-ID: <1198107085.7740.0.camel@oasis.donpoo.home> (raw)
In-Reply-To: <D83235F0F3C86D4D889D8B9A0DA8C6D7012AF540@corpexc01.corp.networkrobots.com>
On Wed, 2007-12-19 at 14:33 -0800, Siva Prasad wrote:
> Thank you very much for your response Clemens.
>
> I tried strace on a regular system. It does not show which tty, etc., as it uses the stdout (fd = 1) and write(1, ...) to it.
>
> This is not a student project. I am trying to build my own kernel and ramdisk. Kernel boots fine to a point where it starts accessing ramdisk and executes init scripts. From there on nothing gets printed. I did some debugging and found that prints of user land programs are not coming to the serial console, while kernel prints are working fine. I found all the programs getting executed, by placing a printk in execve routine and printing the arguments.
>
> So, I wanted to trace down the path from user program to the kernel and see why it is not printing messages from user program. I placed a printk in drivers/char/tty_io.c:tty_write() and it is not getting called from my file system. I tried the same thing on my good system (say regular PC) and it works as expected.
>
> Any clues that can help debug this issue is highly appreciated.
> How can I get access to the same printf string inside kernel.
This sounds like you're printing out the serial console instead.
--
Scott <catfather@donpoo.net>
AIM: BlueCame1
next prev parent reply other threads:[~2007-12-19 23:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-14 0:07 Siva Prasad
2007-12-14 1:55 ` David Newall
2007-12-14 16:15 ` Clemens Koller
2007-12-19 22:33 ` Siva Prasad
2007-12-19 23:31 ` Scott Russell [this message]
2007-12-19 23:31 ` Siva Prasad
2007-12-20 0:04 ` Masoud Sharbiani "مسعود شربیانی"
2007-12-22 3:42 ` Richard D
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=1198107085.7740.0.camel@oasis.donpoo.home \
--to=catfather@donpoo.net \
--cc=clemens.koller@anagramm.de \
--cc=david@davidnewall.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sprasad@bivio.net \
/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
all inboxes | Powered by JetHome®