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

From: Yann Droneaud
Date: Fri Oct 02 2015 - 09:44:03 EST


Le vendredi 02 octobre 2015 Ã 15:20 +0200, Jiri Olsa a Ãcrit :
> On Thu, Oct 01, 2015 at 05:16:26PM +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 (Device or resource busy)
> > perf_event_open(..., 0) failed unexpectedly with error 16 (Device
> > or resource busy)
>
> so this error message is no longer possible due to your earlier patch
> right?
>

My bad, the error used to illustrate the behavior is not well choosed.

> could you please provide current 'before&after' output into changelog
> otherwise it looks ok
>

OK. I'm updating the message.

Regards.

--
Yann Droneaud
OPTEYA


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/