Re: Instruments and dtrace
Re: Instruments and dtrace
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