I am trying to instrument a rust binary to measure the hold and wait times for locks. I have a simple example with a single lock, but when I run the nm test-rs | grep pthread
, I get the following output:
U pthread_attr_destroy@GLIBC_2.2.5
U pthread_attr_getguardsize@GLIBC_2.34
U pthread_attr_getstack@GLIBC_2.34
U pthread_attr_init@GLIBC_2.2.5
U pthread_attr_setstacksize@GLIBC_2.34
U pthread_create@GLIBC_2.34
U pthread_detach@GLIBC_2.34
U pthread_getattr_np@GLIBC_2.32
U pthread_getspecific@GLIBC_2.34
U pthread_key_create@GLIBC_2.34
U pthread_key_delete@GLIBC_2.34
U pthread_self@GLIBC_2.2.5
U pthread_setname_np@GLIBC_2.34
U pthread_setspecific@GLIBC_2.34
As you see, it doesn't use the pthread_lock
and pthread_unlock.
Could you please help me with this issue?