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_HW_CPU_CYCLES: invalid parameters.
    The task_smpl program is the same error as the syst_smpl.
    The errors was occured at the call point of  the function of perf_event_open() in setup_cup()..
 I want to know  the reason of the errors. Anyone can response me ?
Thanks in advance!