Fixed a bug. perf_event_attr must be inialized to 0