Re: [perfmon2] I can't run pfmon

2011-03-14 Thread stephane eranian
Hi, Yes, please use perf_events and the perf tool instead. Thanks. On Wed, Mar 9, 2011 at 3:26 AM, 陳韋任 wrote: > Hi, > >  Current Linux kernel has native support for performance > monitoring. Just update your linux kernel, and use `perf` > instead. > >  See https://perf.wiki.kernel.org/ > > Regar

Re: [perfmon2] libpfm4 for SPARC

2011-03-14 Thread stephane eranian
Hi, On Thu, Mar 10, 2011 at 10:27 AM, 陳韋任 wrote: > Hi, stephane > >  I have one Linux/SPARC T2 machine at hand. I am trying examples in > the libpfm4/examples and libpfm4/perf_examples. > >  I have a question about "perf_examples/evt2raw". What input should I > give it? The help message give me n

Re: [perfmon2] libpfm4 for SPARC

2011-03-14 Thread 陳韋任
Hi, > evt2raw is a simple tool to convert from an event string to a code that can be > passed directly to perf: > > $ perf stat -e `evt2raw inst_retired:any_p` /bin/ls I am a little confuse here. First, are there examples show what event strings can be given to `evt2raw`? I tried your exa

Re: [perfmon2] libpfm4 for SPARC

2011-03-14 Thread Corey Ashford
陳韋任你好, On 03/14/2011 02:20 AM, 陳韋任 wrote: > Hi, > >> evt2raw is a simple tool to convert from an event string to a code that can >> be >> passed directly to perf: >> >> $ perf stat -e `evt2raw inst_retired:any_p` /bin/ls > >I am a little confuse here. First, are there examples show what

Re: [perfmon2] libpfm4 for SPARC

2011-03-14 Thread 陳韋任
Hi, Corey Thanks. It is really help. :) > are not in the list given by "perf list", you must use a raw event code, > by specifying an 'r' followed by the event's hex code. I note there is a line at the bottom of `perf list` says, rNNN (see 'perf list --help' on how to encode it) [Raw hardw

Re: [perfmon2] I can't run pfmon

2011-03-14 Thread 陳韋任
Hi, Stephane I have one suggestion. Since perfmon2 is pretty well-known or googleable. Maybe you can put a FAQ or something else on the website to explain the differences between pfmon and perf, libpfmX and libpfm4, and recommend them to use perf and libpfm4. Is this a good idea? Regards, chenw