Re: [PATCH] perf record: Fix poll return value propagation

From: Arnaldo Carvalho de Melo
Date: Mon Jun 02 2014 - 15:18:51 EST

Em Mon, Jun 02, 2014 at 08:02:06PM +0200, Jiri Olsa escreveu:
> If the perf record command is interrupted in record__mmap_read_all
> function, the 'done' is set and err has the latest poll return
> value, which is most likely positive number (= number of pollfds
> ready to read).
> This 'positive err' is then propagated to the exit code, resulting
> in not finishing the header properly, causing following
> error in report:
> # perf record -F 50000 -a

Acked-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at