Hi George, The cpc provider is not listed in `dtrace -l` output because there are a variety of different permutations on top of the different counters available per CPU. To get a listing of all available registers for your system do a `cpustat -h`. Depending on your system, you will have a max of lighting up 7 registers (some CPUs have stricter limits). From the output of `cpustat` you will see both the PAPI and platform specific events available. From there, I'll be referring to the DTrace book (http://www.amazon.com/DTrace-Dynamic-Tracing-Solaris-FreeBSD/dp/0132091518/ref=sr_1_1?ie=UTF8&qid=1337010603&sr=8-1) Chapters 9 (p 791 and 797) and 12 (p 923).
Caveat: Make sure you are using a recent Nevada release (greater than snv_109) cpc:::<event name>-<mode>-<optional mask-><count> <event name> is from the cpustat -h output <mode> is either user or kernel <count> is the overflow counter (minimum number is 5000 unless you specify differently in /kernel/drv/dcpc.conf) The event must occur a minimum of <count> times in order to be counted. So, cpc:::PAPI_tot_ins-user-200000 => total instructions for user process * 200000 When you light up a cpc probe once, it will be available in `dtrace -l` output until you reboot your system. Hope this helps. -- Carlos Cardenas On Friday, May 11, 2012 at 11:32 PM, George Herman wrote: > Hi! > > I'm trying to use the cpc provider... but it doesn't seem to exist. I'm > trying to get cpu stats for instructions retired and the CPU cycles. If cpc > is not available, what can I use instead? > > Thanks! > > ------------------------------------------- > illumos-discuss > Archives: https://www.listbox.com/member/archive/182180/=now > RSS Feed: https://www.listbox.com/member/archive/rss/182180/21830666-0797d1b5 > Modify Your Subscription: https://www.listbox.com/member/?& > Powered by Listbox: http://www.listbox.com > > ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
