From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20667 invoked by alias); 10 Sep 2013 20:26:30 -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 20348 invoked by uid 48); 10 Sep 2013 20:26:26 -0000 From: "fche at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/15942] New: support abbreviated process.* probes with stap -x PID Date: Tue, 10 Sep 2013 20:26:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fche 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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: 2013-q3/txt/msg00297.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15942 Bug ID: 15942 Summary: support abbreviated process.* probes with stap -x PID Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator Assignee: systemtap at sourceware dot org Reporter: fche at redhat dot com PR12427 introduced the ability to let a user abbreviate process probes by inferring the path from the -c CMD argument. We can do the same with -x PID, perhaps the following way: - stap --no-use-server -e 'probe process.foo {}' -x PID .... map to process("PATH") where PATH = readlink("/proc/PID/exe"), in the same place as PR12427 (dwarf_builder::build) - stap --use-server -e 'probe process.foo {}' -x PID .... map to stap server_options "-c PATH" with same PATH (IOW, pretend to the stap-server that the user typed -c PATH). -- You are receiving this mail because: You are the assignee for the bug.