mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "william fitzgerald" <william.fitzgerald3@beer.com>
To: linux-kernel@vger.kernel.org
Cc: williamf@cs.may.ie
Subject: printk kernel logging for router
Date: Fri, 9 Nov 2001 15:41:17 +2400	[thread overview]
Message-ID: <073EAB4D8C9C4A14CBAAC7C9C97D8242@william.fitzgerald3.beer.com> (raw)

hi all,
linux newbie here.

i need to know some information in regard to
logging with printk statements.

my plan is to monitor the performance of a linux
router.i'm adding printk  statements to the
kernel to every function that is called by
forwarding packets and in that way find precisely
where a packet or packets  get lost.

 this is still in progress.

when i finally get all my printk statements in, i
want to be able to flood my router on my own mini
network.(router running on a p133 using
redhat7.1)

my understanding of printk is that each time it
is encountered it is written to disk.so for a lot
of packets there will be alot of writes,
therefore slowing the system and producing false
results.

so how to i buffer or record  the printk
statements and print them to disk  after my
packets have gone through the router?

 do i edit the printk.c file and change the 
line:

                          static char buf[1024];

and increase the size of the array?
or do i edit the klogd.c program and change
something in there?

 many thanks in advance and all comments no
matter how trivial  are welcome in  order for me
to learn more.

regards william.

Beer Mail, brought to you by your friends at beer.com.

             reply	other threads:[~2001-11-08 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-08 15:41 william fitzgerald [this message]
2001-11-08 16:25 ` Erik Mouw

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=073EAB4D8C9C4A14CBAAC7C9C97D8242@william.fitzgerald3.beer.com \
    --to=william.fitzgerald3@beer.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=williamf@cs.may.ie \
    /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®