From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10481 invoked by alias); 5 Mar 2014 22:05:19 -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 10425 invoked by uid 48); 5 Mar 2014 22:05:14 -0000 From: "dsmith at redhat dot com" To: systemtap@sourceware.org Subject: [Bug testsuite/16493] Improve bkl.stp to add backtrace Date: Wed, 05 Mar 2014 22:05:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: testsuite X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dsmith at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q1/txt/msg00251.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16493 David Smith changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsmith at redhat dot com --- Comment #1 from David Smith --- Sorry for taking so long to look at this. I like the idea of your patch, but we can simplify it a bit. We can remove all the command line processing, and just use stap command line processing with the ability to set global variables from the command line using '-G'. Here's an example of how it works: ==== # stap -e 'global backtrace=-1; probe begin { printf("%d\n", backtrace); exit() }' -G backtrace=100 100 ==== Thanks again for the patch. -- You are receiving this mail because: You are the assignee for the bug.