• 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
Snow Leopard's DTrace does not enable some probes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Snow Leopard's DTrace does not enable some probes?


  • Subject: Snow Leopard's DTrace does not enable some probes?
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Thu, 15 Oct 2009 17:07:13 +0200

Dear Xcode Users,

after upgrading to Snow Leopard and Xcode Tools, I have noticed that my apps that use DTrace no longer work. I have looked at the generated assembly and I see nops properly placed in the code. Further digging revealed, that some of the probes are *disabled* despite they are defined in the .d file. 

Since it worked in Leopard, I am suspecting a bug somewhere else, or someone sees a problem below?

This is how I call the probe:
   if( NFET_MAIN_START_ENABLED() ) {  // <- this probe is always disabled despite enabled below!
     printf("enabled\n");
     NFET_MAIN_START();
   } else {
     printf("disabled\n");
   }
   sleep(1);//app->Run();
   NFET_MAIN_END();

This is how is the probe turned on in the .d file:
  nfet$target:::main-start
  {
    trace("main-start\n");
    self->ts = walltimestamp;
  }

  nfet$target:::main-end
  {
    trace("main-end\n");
    self->ts = walltimestamp - self->ts;
  }

This is how the probe is defined:
  provider nfet {
    probe main__start();
    probe main__end();
  };

This is how I run dtrace (dtrace: Sun D 1.6.2):
  sudo dtrace -qs src/probes.d -c './build/Release/nfet'


Best Regards,

  Tomas

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Snow Leopard's DTrace does not enable some probes?
      • From: Tomas Zahradnicky <email@hidden>
  • Prev by Date: Re: More Stripping Questions
  • Next by Date: Re: Interface Builder lost synchronization with Xcode
  • Previous by thread: Re: sub-project not being built
  • Next by thread: Re: Snow Leopard's DTrace does not enable some probes?
  • Index(es):
    • Date
    • Thread