From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18429 invoked by alias); 17 Mar 2008 15:16:22 -0000 Received: (qmail 18422 invoked by uid 22791); 17 Mar 2008 15:16:21 -0000 X-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_84,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Mar 2008 15:16:04 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m2HFG2Uf005783; Mon, 17 Mar 2008 11:16:02 -0400 Received: from pobox-3.corp.redhat.com (pobox-3.corp.redhat.com [10.11.255.67]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2HFG1Me008593; Mon, 17 Mar 2008 11:16:02 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.yyz.redhat.com [10.15.16.9]) by pobox-3.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2HFFZNQ029925; Mon, 17 Mar 2008 11:16:01 -0400 Received: from ton.toronto.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 5EAEB8001FF; Mon, 17 Mar 2008 10:15:17 -0500 (EST) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id m2HFF0nq029237; Mon, 17 Mar 2008 11:15:00 -0400 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id m2HFEwYQ029235; Mon, 17 Mar 2008 11:14:58 -0400 Date: Mon, 17 Mar 2008 15:16:00 -0000 From: "Frank Ch. Eigler" To: Dave Nomura Cc: systemtap@sourceware.org Subject: Re: user instruction tracing patch? Message-ID: <20080317151458.GA23909@redhat.com> References: <4739E5C2.80206@us.ibm.com> <47D582BB.2060209@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47D582BB.2060209@us.ibm.com> User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 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: 2008-q1/txt/msg00450.txt.bz2 Hi, Dave - > I am finally at a point where I can start looking at the translator > changes to support instruction tracing. [...] > > probe process(PID).itrace { } > > probe process(PID).btrace { } # block trace This is the only variant you need to worry about, as > > probe process(NAME).itrace { } > > probe process(NAME).btrace { } this stuff will come later, based on process-lifetime-tracking code being currently built by dsmith. > [...] > These probes simply establish that instruction tracing, either itrace, > or btrace, is requested for specific processes, and associating a > generated handler corresponding to the { ... } part. > > >Since utrace will provide the pt_regs structure, the probe handler > >bodies will be able to call e.g. backtrace(), probefunc(), and really > >should have some structured access to the registers (a new tapset > >function like register:long ("name") ?) The tapset extensions for context access are very similar to the needs of symbol-only probing being worked on jkenisto. > > probe process(PID).itrace if (condition) { } > > probe process(PID).function("NAME") { condition = 1 } > > probe process(PID).function("NAME").return { condition = 0 } This part will already work. FChE