• 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
Re: Instruments and dtrace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instruments and dtrace


  • Subject: Re: Instruments and dtrace
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 22 Nov 2013 11:48:42 +0100

Hi Justin

Thanks, this is very helpful. I missed the $target.

Thanks again
Eric


Le 22 nov. 2013 à 02:59, Justin Seyster <email@hidden> a écrit :

> I’m not on this mailing list (which is why I can’t reply directly to the original email), but somebody forwarded this Instruments question to me.
>
> Instruments does support custom DTrace Instruments, and with a couple of tricks, you should be able to set up one that will do what you want.
>
> 1. From the “Instrument” menu, choose “Build New Instrument,” which will open a panel with configuration options for a new DTrace Instrument.
> 2. The Instrument starts off with one probe that has its “of type” field set to “User Process.”  Change that setting to “Custom.”
> 3. You can now enter the “Provider,” “Module,” “Function,” and “Name” fields for the probe.  These values should be
>
> Provider:
> myDriver$target
>
> Name:
> getState
>
> Leave the “Module” and “Function” fields blank.
>
> Unfortunately, if you don’t have any pid probes in your custom Instrument, Instruments will not substitute $target with the pid of your target process.  You have to either add a dummy pid probe (perhaps triggered on main) or manually place the pid in the provider (e.g.: myDriver1234).
>
> If you have any more questions about this, please reply-all so that your response goes to my email address as well as the list.  Thanks.
>        —Justin
>
>> From: "email@hidden" <email@hidden>
>> Subject: Instruments and dtrace
>> Date: November 21, 2013 at 10:49:40 AM PST
>> To: Developer Mailing Lists <email@hidden>
>>
>> Hi,
>>
>> I hope this is the right place for this question.
>>
>> I have created a trace probe in my userland driver.
>> Let's say
>> provider myDriver {
>>   probe getState(int);
>> };
>>
>> I can easily monitor this value using dtrace and a script in a shell.
>>
>> But I want to monitor it using Instruments, and I can't get it to work. I can't find the correct settings in the documentation.
>>
>> Help would be greatly appreciated!
>>
>> Thanks
>> Eric


 _______________________________________________
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


  • Prev by Date: Instruments and dtrace
  • Next by Date: Re: Instruments and dtrace
  • Previous by thread: Instruments and dtrace
  • Next by thread: Re: Instruments and dtrace
  • Index(es):
    • Date
    • Thread