Re: [osol-discuss] How to compile libc or pthread ?

2010-11-29 Thread Afantee Lee
Thanks for the suggestion. it seems Dtrace can profile the enter point and exit point of the program. It is a nice tool, but, I probably need more insides into the pthread function it self. for example, I need to profile how many times the pthread_lock try to get the access to the critical

[osol-discuss] Can we replace the libthread.so in Solaris with the one from Opensolaris ?

2010-11-29 Thread Afantee Lee
Hi, I am trying to replace the pthread library under Solaris with my own. My plan is to modify the code from OpenSolaris (adding lots of profiling code), and compile it as a dynamic lib. then, replace the one under Solaris with my own. the question is: will this replacement work ? (if I did

[osol-discuss] How to compile libc or pthread ?

2010-11-25 Thread Afantee Lee
Hi, All With the help for my previous question, I checked out the source code tree. of libc/port/thread but, it seems that there is no way to compile pthread or libc only. there is makefile under libc, but, make all does not work. Would some one please give me some suggestion, how to compile

Re: [osol-discuss] How to compile libc or pthread ?

2010-11-25 Thread Afantee Lee
Hi, Ian The reason I want to compile pthread model under libc is: I am doing a project, which requires profiling the timing information of the pthread events. thus, My plan is, compile current pthread lib first, then, add profiling code, and recompile it. your suggestions will be greatly