From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 21201385C301; Mon, 16 Oct 2023 19:58:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21201385C301 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1697486316; bh=Kp3Xdz7C3UB8sPRRFyl/5PL8KSLpQzaTLfF6wdVtxgY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DxNxgZJTfssML2KGrGAiWpVpjUuBUpnQyJVjGTEmUwOYm1imxLyQFJ65ZzKFpJs9x 3PPITvi+Z/51o6qJ8MxFzMUPd7+M7X0wKjACO1TJMxTpwui0U2qo/kp+GAKsc8f2ZH 4JYUTQ7pDvNZgnXaMynA0RDfO66ajpNgov08eAOk= From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/29756] stap -L regexp match broken on some arches Date: Mon, 16 Oct 2023 19:58:35 +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: component 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29756 William Cohen changed: What |Removed |Added ---------------------------------------------------------------------------- Component|runtime |translator --- Comment #3 from William Cohen --- This looks like an issue with systemtap understanding the debuginfo generat= ed as part of the rpmbuild process. When locally building the glibc-2.34-83.el9_3.7.src.rpm on the machine the following work fine on the unstripped glibc.so.6: [root@s390x-kvm-033 build-s390x-redhat-linux]#=20 ~/systemtap_write/install/bin/stap -v -L 'process("./libc.so.6").function("malloc_init_state")' Pass 1: parsed user script and 489 library scripts using 127764virt/106232res/10972shr/94700data kb, in 230usr/30sys/256real ms. process("/root/rpmbuild/BUILD/glibc-2.34/build-s390x-redhat-linux/libc.so")= .function("malloc_init_state@/root/rpmbuild/BUILD/glibc-2.34/malloc/malloc.= c:1932") /* pc=3D.dynamic+0xab576 */ $av:mstate process("/root/rpmbuild/BUILD/glibc-2.34/build-s390x-redhat-linux/libc.so")= .function("malloc_init_state@/root/rpmbuild/BUILD/glibc-2.34/malloc/malloc.= c:1932") /* pc=3D.dynamic+0xab9e0 */ $av:mstate Pass 2: analyzed script: 2 probes, 0 functions, 0 embeds, 0 globals using 137564virt/117272res/12220shr/104500data kb, in 50usr/0sys/57real ms. However, install the rpms created from that same build a wildcard is needed= to find malloc_init_state: #cd rpmbuild/RPMS/s390x/ #dnf install -y ./glibc-gconv-extra-2.34-83.el9.7.s390x.rpm=20 ./glibc-langpack-en-2.34-83.el9.7.s390x.rpm ./glibc-common-2.34-83.el9.7.s390x.rpm ./glibc-2.34-83.el9.7.s390x.rpm=20 ./glibc-headers-2.34-83.el9.7.s390x.rpm ./glibc-devel-2.34-83.el9.7.s390x.r= pm ./glibc-debugsource-2.34-83.el9.7.s390x.rpm ./glibc-debuginfo-2.34-83.el9.7.s390x.rpm ./glibc-static-2.34-83.el9.7.s390x.rpm=20 # ~/systemtap_write/install/bin/stap -v -L 'process("/lib64/libc.so.6").function("malloc_init_state")' Pass 1: parsed user script and 489 library scripts using 127764virt/106232res/10972shr/94700data kb, in 230usr/30sys/259real ms. Pass 2: analyzed script: 0 probes, 0 functions, 0 embeds, 0 globals using 151728virt/131664res/12412shr/118664data kb, in 100usr/0sys/113real ms. # ~/systemtap_write/install/bin/stap -v -L 'process("/lib64/libc.so.6").function("malloc_init_state*")' Pass 1: parsed user script and 489 library scripts using 127768virt/106236res/10972shr/94704data kb, in 240usr/30sys/254real ms. process("/usr/lib64/libc.so.6").function("malloc_init_state@/usr/src/debug/= glibc-2.34-83.el9.7.s390x/malloc/malloc.c:1932") /* pc=3D.dynamic+0xab576 */ $av:mstate $tcache:tcache_perthread_struct* process("/usr/lib64/libc.so.6").function("malloc_init_state@/usr/src/debug/= glibc-2.34-83.el9.7.s390x/malloc/malloc.c:1932") /* pc=3D.dynamic+0xab9e0 */ $av:mstate $tcache:tcache_perthread_struct* Pass 2: analyzed script: 2 probes, 0 functions, 0 embeds, 0 globals using 151820virt/131536res/12220shr/118756data kb, in 110usr/0sys/120real ms. --=20 You are receiving this mail because: You are the assignee for the bug.=