[Bug translator/27984] New: stap skipping partially-inlined instance, but it is not inline function actually
zhuizhuhaomeng at gmail dot com
sourceware-bugzilla@sourceware.org
Wed Jun 16 02:26:44 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=27984
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=13495&action=edit
the object file of libssl.so
The stap script:
probe
process("/usr/local/openresty/openssl/lib/libssl.so.1.1").function("tls_process_client_hello")
{
var_pid = pid();
printf("%ld\n", var_pid);
}
The build steps:
time /usr/bin/stap --sysroot=/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' =
[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 1785
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_process_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_process_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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list