mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Auge Mike <tobe_better@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Debugging , Tracing...
Date: Mon, 7 Jul 2003 07:13:03 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.53.0307070708290.17801@chaos> (raw)
In-Reply-To: <Sea2-F643FKvfTFuO3b0001bb2a@hotmail.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 1268 bytes --]

On Sun, 6 Jul 2003, Auge Mike wrote:

> Hi all,
>
>       I have asked before few weeks about tracing the execution of the
> kernel or debugging it. Unfortunately, I faced some problems in using Kgdb,
> especially that the patch was not successful on my redhat 7.3.
>      Whatever, lets say that kgdb worked successfully, how can I trace the
> execution of “a specific system call” (lets say printf), so I can see how it
> works internally. Is there any other utility for that? How can I do that
> with kgdb?
>
>      Thanx for your help in advance.
>
> Yours,

printf() is not a system call. It is some procedure within the
'C' runtime library. Eventually, that library makes a call to
write() which is a kernel system call. You can use strace to see
the execution of all the system calls.

If you want to single-step through the 'C' runtime library, you
need to get their sources and compile them with the '-g' parameter
(for debugging). I don't know why you would want to do that, because
you would then have the sources so you can actually read the source
of what happens with a particular call.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.


  reply	other threads:[~2003-07-07 10:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-06 19:48 Auge Mike
2003-07-07 11:13 ` Richard B. Johnson [this message]
     [not found] <20030707110001.734.6504.Mailman@lists.us.dell.com>
2003-07-07 23:30 ` Slack Ware

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=Pine.LNX.4.53.0307070708290.17801@chaos \
    --to=root@chaos.analogic.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tobe_better@hotmail.com \
    /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®