[dtrace-discuss] function of semtimedop is not in syscall provider in dtrace

2009-08-07 Thread Qihua Wu
If use truss on an oracle process. we could see something like the following, so semtimedop should be a syscall 22459/1: semtimedop(9, 0xFD7FFFDFE648, 1, 0xFD7FFFDFE488) EAGAIN 22459/1: semnum=15semop=-1semflg=0 22459/1: timeout: 2.06000 sec but the

[dtrace-discuss] execname: not the same name as ps -ef

2009-08-07 Thread Qihua Wu
Hi everyone, For all oracle processes, the execname are oracle, but if use ps -ef we could see processes like smon, pmon. How can I get the value show in ps -ef(sid_smon, sid_pmon, etc) Thanks, Daniel ___ dtrace-discuss mailing list

[dtrace-discuss] When is a string constant not a string constant?

2009-08-07 Thread Hamish
AKA, what's wrong with the following? Isn't a string literal always a constant? $ cat cfretain_calayer.d pid$target::CFRetain:entry { isaptr = *(uint32_t*)copyin(arg0, 4); classnameptr = *(uint32_t*)copyin(isaptr+8, 4); classname = copyinstr(classnameptr); p = (classname ==

Re: [dtrace-discuss] When is a string constant not a string constant?

2009-08-07 Thread Adam Leventhal
Hey Hamish, AKA, what's wrong with the following? Isn't a string literal always a constant? $ cat cfretain_calayer.d pid$target::CFRetain:entry { isaptr = *(uint32_t*)copyin(arg0, 4); classnameptr = *(uint32_t*)copyin(isaptr+8, 4); classname = copyinstr(classnameptr); p =

Re: [dtrace-discuss] When is a string constant not a string constant?

2009-08-07 Thread Hamish
Brilliant, thank you! -- This message posted from opensolaris.org ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] When is a string constant not a string constant?

2009-08-07 Thread Hamish
I should probably have mentioned that I only introduced the extra variable p as a result of getting exactly the same error with the more direct approach: printf(classname == CALayer ? CFRetain(CALayer)\n : ); Anyway, thanks again to Adam for providing a clear solution! -- This message posted

Re: [dtrace-discuss] Problem tracing Fortran function with pid provider

2009-08-07 Thread Jonathan Adams
On Fri, Aug 07, 2009 at 08:38:56AM -0700, Manfred M?cke wrote: Hello, I have a fortran program and want to monitor entry/return events of a specific function. No big thing (I thought). The function is called DCNTRL in the source code. Checking the binary gives: nm myprog | grep FUNC |