[PATCH] perf evsel: Return exact sub event which failed with EPERM for wildcards

2017-04-06 Thread Jin Yao
The kernel has a special check for irq_vectors trace event. TRACE_EVENT_PERF_PERM(irq_work_exit, is_sampling_event(p_event) ? -EPERM : 0); The perf-record is failed for irq_vectors event if using a wildcard. root@skl:/tmp# perf record -a -e irq_vectors:* sleep 2 Error: You may not have

[PATCH] perf evsel: Return exact sub event which failed with EPERM for wildcards

2017-04-06 Thread Jin Yao
The kernel has a special check for irq_vectors trace event. TRACE_EVENT_PERF_PERM(irq_work_exit, is_sampling_event(p_event) ? -EPERM : 0); The perf-record is failed for irq_vectors event if using a wildcard. root@skl:/tmp# perf record -a -e irq_vectors:* sleep 2 Error: You may not have