This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [pcp] systemtap/pcp integration
- From: William Cohen <wcohen at redhat dot com>
- To: David Smith <dsmith at redhat dot com>, Systemtap List <systemtap at sourceware dot org>, pcp <pcp at oss dot sgi dot com>
- Date: Fri, 18 Jul 2014 17:10:16 -0400
- Subject: Re: [pcp] systemtap/pcp integration
- Authentication-results: sourceware.org; auth=none
- References: <53C83CB9 dot 3020808 at redhat dot com>
On 07/17/2014 05:14 PM, David Smith wrote:
> Here's a small update on the prototype systemtap/pcp integration work
> I'm doing. I've create a systemtap branch, called 'dsmith/mmv' that
> contains all my work. Basically this work allows systemtap to create
> 'mmv' memory mapped files.
>
> If you checkout and build that, then you should be able to run the
> attached systemtap script. This script is a translation of pcp's example
> python mmv script found in src/python/mmv.py.
>
> Note that systemtap will create a file called 'mmv' in
> /proc/systemtap/{MODULE_NAME}. I've just been using pcp's 'mmvdump'
> utility to dump the contents of the /proc/systemtap/{MODULE_NAME}/mmv
> file. Currently the pcp mmv pmda only looks in one place for mmv files,
> but it might be possible to create a symbolic link to systemtap's mmv
> file to make it happy.
>
> The code works for the attached script, but I'm sure it is quite
> fragile. Things like locking, error checking, documentation, etc. need
> to be done.
>
>
>
> _______________________________________________
> pcp mailing list
> pcp@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/pcp
>
Hi David,
I was able to get this to work on RHEL 7. However, on fedora20 the mmvdump gets a sigsegv in the dump() function.
-Will