dtrace: failed to compile script trace.d: line 22: probe description pid14677::objc_msgSend:return does not match any probes
dtrace: failed to compile script trace.d: line 22: probe description pid14677::objc_msgSend:return does not match any probes
- Subject: dtrace: failed to compile script trace.d: line 22: probe description pid14677::objc_msgSend:return does not match any probes
- From: Hamish Allan <email@hidden>
- Date: Tue, 28 Jul 2009 21:01:52 +0100
Hi,
I'm trying to examine the methods called subsequent to -[UIWindow
sendEvent:] using the following DTrace script:
/* trace.d /*
objc$target:UIWindow:-sendEvent?:entry
{
self->collect = 1;
}
objc$target:UIWindow:-sendEvent?:return
{
self->collect = 0;
}
pid$target::objc_msgSend:entry
/ self->collect > 0 /
{
// Technique from
http://www.friday.com/bbum/2008/01/26/objective-c-printing-class-name-from-dtrace/
// Is there really no more straightforward way to log the class
name than this?
isaptr = *(uint32_t*)copyin(arg0, 4);
classnameptr = *(uint32_t*)copyin(isaptr+8, 4);
classname = copyinstr(classnameptr);
printf("[%s %s]\n", classname, copyinstr(arg1));
}
pid$target::objc_msgSend:return
/ self->collect > 0 /
{
}
/* end trace.d */
However, I get the following error:
kai:~ hamish$ sudo dtrace -F -s trace.d -p 14677 > trace.txt
dtrace: failed to compile script trace.d: line 22: probe description
pid14677::objc_msgSend:return does not match any probes
I'm a DTrace newbie, so I'm probably missing something basic, but does
the pid provider not publish a probe called "return" for every "entry"
it publishes?
Thanks,
Hamish
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden