Re: [PATCH] perf tools: report PERF_FLAG_FD_CLOEXEC probing error once

2014-08-03 Thread Jiri Olsa
On Sat, Aug 02, 2014 at 08:13:22PM +0200, Yann Droneaud wrote: > In case of failure, unrelated to PERF_FLAG_FD_CLOEXEC, > perf_flag_probe() reports the error twice. For example: > > $ perf record ls > Error: > perf_event_open(..., PERF_FLAG_FD_CLOEXEC) failed with unexpected error 16 > (Dev

[PATCH] perf tools: report PERF_FLAG_FD_CLOEXEC probing error once

2014-08-02 Thread Yann Droneaud
In case of failure, unrelated to PERF_FLAG_FD_CLOEXEC, perf_flag_probe() reports the error twice. For example: $ perf record ls Error: perf_event_open(..., PERF_FLAG_FD_CLOEXEC) failed with unexpected error 16 (Device or resource busy) perf_event_open(..., 0) failed unexpectedly with erro