You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "chenBright (via GitHub)" <gi...@apache.org> on 2023/02/23 12:07:25 UTC

[I] contention profiler是否支持pthread_wrlock (brpc)

chenBright opened a new issue, #2133:
URL: https://github.com/apache/brpc/issues/2133

   https://github.com/BrianGladman/pthreads/blob/master/pthread_rwlock_wrlock.c
   https://android.googlesource.com/platform/external/pthreads/+/216eb8153b2455d1e15f8fbf84d4413ddcc40adc/pthread_rwlock_wrlock.c
   看了两个实现,pthread_wrlock是用pthread_mutex_lock实现的,所以contention profiler应该也支持pthread_wrlock的吧?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


Re: [I] contention profiler是否支持pthread_wrlock (brpc)

Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright commented on issue #2133:
URL: https://github.com/apache/brpc/issues/2133#issuecomment-1455323227

   hook pthread_wrlock应该就能支持了吧?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


Re: [I] contention profiler是否支持pthread_wrlock (brpc)

Posted by "chenzhangyi (via GitHub)" <gi...@apache.org>.
chenzhangyi commented on issue #2133:
URL: https://github.com/apache/brpc/issues/2133#issuecomment-1453003277

   应该是不支持的,这个和符号查找顺序有关,对于pthread_mutex_lock的hook没法影响到到glibc.so内部调用。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org