From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12742 invoked by alias); 27 Apr 2009 21:01:09 -0000 Received: (qmail 12659 invoked by uid 22791); 27 Apr 2009 21:01:08 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Apr 2009 21:01:01 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n3RL10rx032324; Mon, 27 Apr 2009 17:01:00 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n3RL0xo8015887; Mon, 27 Apr 2009 17:00:59 -0400 Received: from localhost.localdomain (dst61.hsv.redhat.com [172.16.16.175]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n3RL0ugB023042; Mon, 27 Apr 2009 17:00:57 -0400 Message-ID: <49F61D09.8090503@redhat.com> Date: Mon, 27 Apr 2009 21:01:00 -0000 From: David Smith User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Maynard Johnson CC: systemtap@sourceware.org, "Frank Ch. Eigler" Subject: Re: Backward compatibility for insn probe point References: <49D3E3DF.1000108@us.ibm.com> In-Reply-To: <49D3E3DF.1000108@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2009-q2/txt/msg00446.txt.bz2 Maynard Johnson wrote: > Frank has already made the changes in runtime/itrace.c to support > backward compatibility with older utrace. > I wanted to test the insn probe point on an older utrace, so I built > and installed systemtap 0.9.5 on a ppc970 blade running RHEL 5.3. I > ran the following simple test: > > # stap -c /bin/ls simple-test.stp /bin/ls -o simple-out -k -vvv > where simple-test.stp is . . . > =========simple-test.stp ======================== > global instrs = 0 > > probe begin { > printf("systemtap starting probe\n") > } > > probe process(@1).insn { > instrs += 1 > } > > probe end { printf("systemtap ending probe\n") > printf("itraced = %d\n", instrs) > } > ================================== > > The result of the above test is that the stap command hangs at > "stapio:start_cmd:195 execing target_cmd /bin/ls". If I Ctl-C the > job, it finished (i.e, I see "Pass 5: run completed ..."), but the > output file contents indicate the insn probe was not hit (i.e., > "itraced = 0"). > > Any suggestions on where to look for the problem? I took a look at this and fixed it. For more details, see . -- David Smith dsmith@redhat.com Red Hat http://www.redhat.com 256.217.0141 (direct) 256.837.0057 (fax)