From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 345A6396E424; Thu, 7 May 2020 17:55:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 345A6396E424 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/25549] Systemtap unable to find many probe points available in code compiled with LTO enable Date: Thu, 07 May 2020 17:55:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: wcohen 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: Message-ID: In-Reply-To: References: 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: Thu, 07 May 2020 17:55:34 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25549 --- Comment #9 from William Cohen --- It looks like llvm generated debuginfo doesn't have the abstract_origin, so even using the old prepatched elfutils systemtap is able to find the lines = for clang -flto code. Things still work fine with the patched elfutils. Compiling the example with clang and running systemtap with the patched elfutils the results look sane: [wcohen@cervelo BUILDROOT]$ rpm -q clang clang-8.0.0-3.fc30.x86_64 [wcohen@cervelo BUILDROOT]$ clang -o pr25549_llvm -g -O2 pr25549.cxx [wcohen@cervelo BUILDROOT]$ stap -v -L 'process("./pr25549_llvm").statement("*@*:*")' Pass 1: parsed user script and 577 library scripts using 1279160virt/1049792res/13144shr/1036404data kb, in 2320usr/260sys/2582real = ms. process("/home/wcohen/rpmbuild/BUILDROOT/pr25549_llvm").statement("main@/ho= me/wcohen/rpmbuild/BUILDROOT/pr25549.cxx:4") /* pc=3D.absolute+0x1130 */ $argc:int $argv:char** process("/home/wcohen/rpmbuild/BUILDROOT/pr25549_llvm").statement("main@/ho= me/wcohen/rpmbuild/BUILDROOT/pr25549.cxx:5") /* pc=3D.absolute+0x1131 */ $argc:int $argv:char** process("/home/wcohen/rpmbuild/BUILDROOT/pr25549_llvm").statement("main@/ho= me/wcohen/rpmbuild/BUILDROOT/pr25549.cxx:6") /* pc=3D.absolute+0x113b */ Pass 2: analyzed script: 3 probes, 0 functions, 0 embeds, 0 globals using 1337580virt/1109364res/14236shr/1094824data kb, in 300usr/10sys/320real ms. [wcohen@cervelo BUILDROOT]$ clang -o pr25549_llvm_lto -g -O2 -flto pr25549.= cxx [wcohen@cervelo BUILDROOT]$ stap -v -L 'process("./pr25549_llvm_lto").statement("*@*:*")' Pass 1: parsed user script and 577 library scripts using 1279164virt/1050012res/13360shr/1036408data kb, in 2280usr/290sys/2568real = ms. process("/home/wcohen/rpmbuild/BUILDROOT/pr25549_llvm_lto").statement("main= @/home/wcohen/rpmbuild/BUILDROOT/pr25549.cxx:4") /* pc=3D.absolute+0x1130 */ $argc:int $argv:char** process("/home/wcohen/rpmbuild/BUILDROOT/pr25549_llvm_lto").statement("main= @/home/wcohen/rpmbuild/BUILDROOT/pr25549.cxx:5") /* pc=3D.absolute+0x1131 */ $argc:int $argv:char** process("/home/wcohen/rpmbuild/BUILDROOT/pr25549_llvm_lto").statement("main= @/home/wcohen/rpmbuild/BUILDROOT/pr25549.cxx:6") /* pc=3D.absolute+0x113b */ Pass 2: analyzed script: 3 probes, 0 functions, 0 embeds, 0 globals using 1337584virt/1109572res/14440shr/1094828data kb, in 310usr/10sys/316re --=20 You are receiving this mail because: You are the assignee for the bug.=