• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
dtrace: failed to compile script trace.d: line 22: probe description pid14677::objc_msgSend:return does not match any probes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: dtrace: failed to compile script trace.d: line 22: probe description pid14677::objc_msgSend:return does not match any probes
      • From: Ken Thomases <email@hidden>
    • Re: 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>
  • Prev by Date: gdb: "No line number information available for address...." :(
  • Next by Date: Re: gdb: "No line number information available for address...." :(
  • Previous by thread: Re: gdb: "No line number information available for address...." :(
  • Next by thread: Re: dtrace: failed to compile script trace.d: line 22: probe description pid14677::objc_msgSend:return does not match any probes
  • Index(es):
    • Date
    • Thread