Logging information through printk
Alex Iribarren
alex.iribarren.lists@gmail.com
Mon Jun 4 11:37:00 GMT 2007
Hi,
I've written a systemtap script that tracks network connections and logs
data about them. I'm using printk to log the data, but this is causing
kernel panics when there are a lot of connections.
I see from bugzilla
(http://sourceware.org/bugzilla/show_bug.cgi?id=3541) that these kind of
problems are known, but I don't see anything in the way of a workaround.
One solution is to use system("/usr/bin/logger blabla") instead of
printk, but then I'm afraid I'll be forking too many processes and
creating lots of extra overhead.
Can you guys suggest another alternative? Is there a safe way of calling
printk?
Cheers,
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 481 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/systemtap/attachments/20070604/7a36736e/attachment.sig>
More information about the Systemtap
mailing list