This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
logger PMDA review
- From: David Smith <dsmith at redhat dot com>
- To: pcp <pcp at oss dot sgi dot com>
- Cc: Systemtap List <systemtap at sources dot redhat dot com>
- Date: Wed, 13 Apr 2011 14:52:28 -0500
- Subject: logger PMDA review
After mucking around a bit, I've got a working version of my PCP logger
PMDA. You can see the result by looking at:
<http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=tree;f=pcp/src/pmdas/logger;h=b69c63b346157a2a6f857ac80cbf1eda5f7be824;hb=HEAD>
Or you can do a git pull (and look at pcp/src/pmdas/logger in the
resulting tree):
# git clone git://sources.redhat.com/git/systemtap.git
When installed, the PMDA creates a config file containing a NAME and
PATH for logfiles to monitor. If PATH ends in '|', the filename is
interpreted as a command that pipes output to the PMDA.
Each logfile's data appears under logger.perfile.NAME. Each event
stream can have multiple clients attached to it.
I'd appreciate any comments on the code. Thanks for the help.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)