From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13169 invoked by alias); 21 Jul 2014 15:54:48 -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 13158 invoked by uid 89); 21 Jul 2014 15:54:48 -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; Mon, 21 Jul 2014 15:54:47 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6LFsh2P029655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jul 2014 11:54:44 -0400 Received: from [10.13.129.214] (dhcp129-214.rdu.redhat.com [10.13.129.214]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6LFsgbq009166; Mon, 21 Jul 2014 11:54:42 -0400 Message-ID: <53CD37C2.1060705@redhat.com> Date: Mon, 21 Jul 2014 15:54: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> <53C98D38.7080703@redhat.com> <53CD352E.8030101@redhat.com> In-Reply-To: <53CD352E.8030101@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-q3/txt/msg00058.txt.bz2 On 07/21/2014 11:43 AM, David Smith wrote: > On 07/18/2014 04:10 PM, William Cohen wrote: >> 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. > > Thanks for the bug report. I believe I just fixed this one, so after > updating let me know if it doesn't work for you. > Hi David, That fix made fedora 20 happy. In one window did: $ ./systemtap_write/install/bin/stap mmv.stp instances: 0, 1 indom: 0 metrics: 0, 1, 2 In another ran the mmvdump from pcp: $ ./mmvdump /proc/systemtap/stap_cb2f18a783870e1474713324d01a25f_25939/mmv MMV file = /proc/systemtap/stap_cb2f18a783870e1474713324d01a25f_25939/mmv Version = 1 Generated = 769479 TOC count = 5 Cluster = 42 Process = 0 Flags = 0x0 TOC[0]: offset 40, indoms offset 1848 (1 entries) [1/1848] 2 instances, starting at offset 152 shorttext=We can be heroes helptext=Set of instances from zero to hero TOC[1]: offset 56, instances offset 152 (2 entries) [1/152] instance = [0 or "zero"] [1/232] instance = [1 or "hero"] TOC[2]: toc offset 72, metrics offset 1880 (3 entries) [1/1880] counter type=64-bit int (0x2), sem=counter (0x1), pad=0x0 units=count (no indom) shorttext=Example counter metric helptext=Yep, a test counter metric [2/1984] instant type=64-bit int (0x2), sem=instant (0x3), pad=0x0 units= (no indom) shorttext=Example instant metric helptext=Yep, a test instantaneous metric [3/2088] indom type=64-bit int (0x2), sem=discrete (0x4), pad=0x0 units= indom=1 (no shorttext) (no helptext) TOC[3]: offset 88, values offset 2192 (4 entries) [1/2192] counter = 0 [2/2224] instant = 325 [3/2256] indom[0 or "zero"] = 0 [3/2288] indom[0 or "zero"] = 0 TOC[4]: offset 104, string offset 312 (6 entries) [1/312] We can be heroes [2/568] Set of instances from zero to hero [3/824] Example counter metric [4/1080] Yep, a test counter metric [5/1336] Example instant metric [6/1592] Yep, a test instantaneous metric -Will