From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9CBC13858020; Sat, 13 Feb 2021 00:00:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CBC13858020 From: "fche at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/27410] New: rpm-set path based probes Date: Sat, 13 Feb 2021 00:00:29 +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-Resolution: 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 target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Feb 2021 00:00:30 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27410 Bug ID: 27410 Summary: rpm-set path based probes Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator Assignee: systemtap at sourceware dot org Reporter: fche at redhat dot com Target Milestone: --- Bug #25568's introduced capabilities to specify probes by build-id, but thi= s is not very user friendly. What users tend to see directly are file names, and occasionally filenames from archives that are not even installed. The attachment is a demonstration prototype for a stap front-end that can t= ake a path name and a list of RPM-containing directories. It computes a buildid-based script template based on finding all buildids for the given p= ath name in any of the RPMs found, and then compiles than via stap -p4. It use= s a temporary instance of debuginfod to build/serve the buildid executables / debuginfo. % sh stap-multirpm /usr/bin/vi /path/to/RPMs [starts debuginfod -R /path/to/RPMs ...] [chance to edit template SCRIPT.stp] [compiles to stap_hexcode.ko] [kills debuginfod] % sudo staprun stap_hexcode.ko & % /usr/bin/vi # of any version from any of those RPMs [watch stap probe hit] We should consider growing some native systemtap syntax for this. Suggesti= ons welcome. Possibility: probe rpmsearch("/path/to/RPMs/prefix*").process("/path/name").function(...= ) { } probe debsearch(...) { } --=20 You are receiving this mail because: You are the assignee for the bug.=