Re: [perfmon2] libpfm4 programming

2011-02-22 Thread stephane eranian
Hi, 2011/2/19 explore_zjx : > Hi, everyone: >   I wanna to ask  a question about libpfm4. In the perf_example > directory, there are some examples about the use of libpfm4.  In the source > code, the value must be scaled after the valued was read. It completed > scaling by calling the function

Re: [perfmon2] syst_smpl of perf_example program can not attach events

2011-02-22 Thread stephane eranian
Hi, 2011/2/20 explore_zjx : > Hello, everyone: > My platform is intel westmere (single socket) . The cpu is core i3. the > OS kernel is linux 2.6.31. However, I encounter the following errors when I > run the syst_smpl program, > the error is : >     syst_smpl: can not attach the events PERF

Re: [perfmon2] syst_smpl of perf_example program can not attach events

2011-02-22 Thread stephane eranian
2011/2/22 explore_zjx : > Hello, everyone: > My platform is intel westmere (single socket) . The cpu is core i3. the > OS kernel is linux 2.6.31. However, I encounter the following errors when I > run the syst_smpl program, > the error is : >     syst_smpl: can not attach the events PERF_COUNT