From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8268 invoked by alias); 18 Jul 2014 21:10:31 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 8063 invoked by uid 89); 18 Jul 2014 21:10:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 18 Jul 2014 21:10:23 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6ILAHDx000709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Jul 2014 17:10:17 -0400 Received: from [10.13.129.214] (dhcp129-214.rdu.redhat.com [10.13.129.214]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6ILAGaW000392; Fri, 18 Jul 2014 17:10:16 -0400 Message-ID: <53C98D38.7080703@redhat.com> Date: Fri, 18 Jul 2014 21:10:00 -0000 From: William Cohen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: David Smith , Systemtap List , pcp Subject: Re: [pcp] systemtap/pcp integration References: <53C83CB9.3020808@redhat.com> In-Reply-To: <53C83CB9.3020808@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-q3/txt/msg00045.txt.bz2 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