Re: [dtrace-discuss] CPC provider - input welcome

2008-07-23 Thread Jon Haslam
Tracing Fans, I know it's been a long time in coming but the CPU Performance Counter (CPC) provider is almost here! The code is currently in for review and a proposed architecture document is attached here for review. Many thanks to all those that gave me feedback on this proposal. A revised

Re: [dtrace-discuss] CPC provider - input welcome

2008-07-23 Thread Peter Cudhea
Thanks for implementing this feature. A few comments simply on the presentation of the ideas. 1) Section 2 talks about args[0] and args[1], yet the examples use arg0 and arg1. This may be just cosmetic, but it might be worth being consistent. Also, should the description be specific about

Re: [dtrace-discuss] Can DTrace tell me if my process is 32 or 64 bit?

2008-07-23 Thread Jim Mauro
You could use curpsinfo-pr_dmodel is a predicate. probe / curpsinfo-pr_dmodel == 1/ { 32-bit process } probe / curpsinfo-pr_dmodel == 2/ { 64-bit process } /jim Bruce Chapman wrote: I had a simple D script that looks for use of the DP_POLL ioctl with a long timeout for any process

Re: [dtrace-discuss] Error in check value of the in-out parameter of function call

2008-07-23 Thread Jonathan Adams
On Sun, Jul 20, 2008 at 11:15:43AM +0800, zhihui Chen wrote: I want to check value of the in-out parameter of one function when it returns, but each time dtrace will report error. Following is the script, anyone can help me correct the error with it? #!/usr/sbin/dtrace -s #pragma D option