From: Tom spaziani <digiphaze@deming-os.org>
To: linux-kernel@vger.kernel.org
Subject: Kernel Module tracing.
Date: Fri, 29 Jun 2001 14:37:18 -0700 [thread overview]
Message-ID: <3B3CF50E.65D24882@deming-os.org> (raw)
I've recently been laboring over a kernel module that allows other
kernel modules to send messages
and tracing statements. If anyone has any input on whether this would
be a usefull thing or not
please let me know. Here is a quick breakdown on how it works.
Beware, this is only a BRIEF explaination.. I'll follow up with more
details if anyone is intereasted.
trace.o <- Tracing module
mymodule .o <- Client module
1: Load tracing module
2: Load a module that uses the tracing modules for reporting.
a. the client module requests a certain number of reporting levels.
b. the trace module creates a devFS entry for each of the requested
reporting levels.
( /dev/trace/mymodule/mymodule0
mymodule1 ...
)
3. Now the client module can send messages with a specific severity
rating and have it set
to the appropriate character file.
4. User space programs listening on each of the character files can do
whatever, log the messages
or perform tasks depending on the message.
5. When a client module is unloaded the devFS entries are removed and
the user programs are also
told to close the file.
I am using the devFS filesystem because of the abilities to easily
dynamically create new entries and
remove them.. Currently devFS does not recycle Major and Minor numbers,
but a co-worker of mine
has created a patch to fix that.
next reply other threads:[~2001-06-29 21:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-29 21:37 Tom spaziani [this message]
2001-07-03 19:36 ` Kernel Module tracing Daniel Phillips
2001-07-05 15:38 ` Constantin Loizides
-- strict thread matches above, loose matches on Subject: below --
2001-06-29 22:18 Michael Nguyen
2001-07-06 8:08 Richard J Moore
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=3B3CF50E.65D24882@deming-os.org \
--to=digiphaze@deming-os.org \
--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