>   I write a method in Objective-C  - (void)foo:(int)a; in class  
> MyClass; and then try to fire the probe. So I try to write as follows:
>    objc$target:MyClass:'I don't know what to write here":entry
>
>    since the method name in Objective-C is "foo:" ,which includes a  
> ":" ,however ":" is reserved as the separator. Is there anyway that  
> I can put a ":"  other than as a separator? I know using wildcard  
> would solve the problem, but it would be better if I can accurately  
> specify the exact method name.


Since you're using Objective-C, I'm going to guess that you're on the  
Mac
platform. If that's the case, the folks at Apple have a special 'objc'
provider that's documented in the dtrace(1) manpage in Mac OS X. If  
you're
on Solaris, you'll need to use the mangled name as it would appear in  
the
symbol table, and use that with the pid provider.

Adam

--
Adam Leventhal, Fishworks                        http://blogs.sun.com/ahl

_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to