From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 12292384F02C; Fri, 16 Jul 2021 14:49:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12292384F02C From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/27984] stap skipping partially-inlined instance, but it is not inline function actually Date: Fri, 16 Jul 2021 14:49:32 +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: Fri, 16 Jul 2021 14:49:33 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27984 --- Comment #8 from William Cohen --- To better check what was going on I added the following patch to see what offsets were being used and found that the libssl.so.1.1 library had a bias= of 0x10000 for the addresses: diff --git a/tapsets.cxx b/tapsets.cxx index 20e0cb68f..251e2a4b6 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -2280,9 +2280,14 @@ query_dwarf_func (Dwarf_Die * func, dwarf_query * q) // up the ELF symbol name and rely on a heuristic. GElf_Sym sym; GElf_Off off =3D 0; - const char *name =3D dwfl_module_addrinfo (q->dw.module, ent= rypc, + Dwarf_Addr bias =3D 0x10000; + + const char *name =3D dwfl_module_addrinfo (q->dw.module, entr= ypc + bias, &off, &sym, NULL, N= ULL, NULL); + if (q->sess.verbose>2) + clog << _F("%s =3D dwfl_module_addrinfo(entrypc=3D%p, off=3D%p)\n", + name, (void*)entrypc, (void*) off); if (name !=3D NULL && strstr(name, ".part.") !=3D NULL) { if (q->sess.verbose>2) With this patch see that the code is finding the correct function names for= the library functions: focused on module '/tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1.1' selected function BIO_new_ssl BIO_new_ssl =3D dwfl_module_addrinfo(entrypc=3D0x1f760, off=3D(nil)) selected function BIO_new_ssl_connect BIO_new_ssl_connect =3D dwfl_module_addrinfo(entrypc=3D0x1f7e0, off=3D(nil)) selected function ssl_puts ssl_puts =3D dwfl_module_addrinfo(entrypc=3D0x1ed10, off=3D(nil)) selected function ssl_new ssl_new =3D dwfl_module_addrinfo(entrypc=3D0x1ed40, off=3D(nil)) selected function BIO_ssl_shutdown BIO_ssl_shutdown =3D dwfl_module_addrinfo(entrypc=3D0x1f960, off=3D(nil)) selected function ssl_callback_ctrl ssl_callback_ctrl =3D dwfl_module_addrinfo(entrypc=3D0x1ecd0, off=3D(nil)) --=20 You are receiving this mail because: You are the assignee for the bug.=