From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E454386FC0A; Wed, 16 Jun 2021 02:26:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E454386FC0A From: "zhuizhuhaomeng at gmail dot com" To: systemtap@sourceware.org Subject: [Bug translator/27984] New: stap skipping partially-inlined instance, but it is not inline function actually Date: Wed, 16 Jun 2021 02:26:44 +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: zhuizhuhaomeng at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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 attachments.created 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: Wed, 16 Jun 2021 02:26:44 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27984 Bug ID: 27984 Summary: stap skipping partially-inlined instance, but it is not inline function actually Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: translator Assignee: systemtap at sourceware dot org Reporter: zhuizhuhaomeng at gmail dot com Target Milestone: --- Created attachment 13495 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13495&action=3Ded= it the object file of libssl.so The stap script: probe process("/usr/local/openresty/openssl/lib/libssl.so.1.1").function("tls_pro= cess_client_hello") { var_pid =3D pid(); printf("%ld\n", var_pid); } The build steps: time /usr/bin/stap --sysroot=3D/tmp/stap-job1/sysroot -vvvvv \ -p2 \ -d "/usr/local/openresty/openssl/lib/libssl.so.1.1" --disable-cache= \ "test.stp" how to reproduce it: download the attachment, and decompress to /tmp director. enter into the /tmp/stap-job1 direcotry and run sh make.sh. dwarf_builder::build for /tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1.1 parse 'tls_process_client_hello', func 'tls_process_client_hello' pattern '/tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1= .1' matches module '/tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1.1' focused on module '/tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1.1' =3D [0x10000-0xa59b0, bias 0 file /tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1.1 ELF machine |x86_64 (code 62) focused on module '/tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1.1' module function cache /tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1.1 size 1= 785 module function cache /tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1.1 hit tls_process_client_hello selected function tls_process_client_hello skipping partially-inlined instance state_machine.part.0 at 0x61b70 suggesting 1898 dwarf functions from modules: /tmp/stap-job1/sysroot/usr/local/openresty/openssl/lib/libssl.so.1.1 semantic error: while resolving probe point: identifier 'process' at test.stp:2:7 thrown from: elaborate.cxx:1067 source: probe process("/usr/local/openresty/openssl/lib/libssl.so.1.1").function("tls_pro= cess_client_hello") { ^ semantic error: while resolving probe point: identifier 'process' at :2:7 thrown from: elaborate.cxx:1067 source: probe process("/usr/local/openresty/openssl/lib/libssl.so.1.1").function("tls_pro= cess_client_hello") { ^ semantic error: no match (similar functions: tls_process_client_hello, tls_post_process_client_hello, tls_process_server_hello, tls_early_post_process_client_hello, tls_process_cert_verify) thrown from: tapsets.cxx:8883 deleting module_cache --=20 You are receiving this mail because: You are the assignee for the bug.=