Re: [PATCH] perf python: Do not force closing original perf descriptor in evlist.get_pollfd

2018-12-27 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 27, 2018 at 09:06:38AM +0100, Jiri Olsa escreveu: > On Wed, Dec 26, 2018 at 12:21:21PM +0100, Jiri Olsa wrote: > > Ondřej reported that when compiled with python3, the python > > extension regress in evlist.get_pollfd function behaviour. > > > > The evlist.get_pollfd creates file

Re: [PATCH] perf python: Do not force closing original perf descriptor in evlist.get_pollfd

2018-12-27 Thread Jiri Olsa
On Wed, Dec 26, 2018 at 12:21:21PM +0100, Jiri Olsa wrote: > Ondřej reported that when compiled with python3, the python > extension regress in evlist.get_pollfd function behaviour. > > The evlist.get_pollfd creates file objects from evlist's fds > and returns them in the list. The python3

Re: [PATCH] perf python: Do not force closing original perf descriptor in evlist.get_pollfd

2018-12-26 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 26, 2018 at 12:21:21PM +0100, Jiri Olsa escreveu: > Ondřej reported that when compiled with python3, the python > extension regress in evlist.get_pollfd function behaviour. > > The evlist.get_pollfd creates file objects from evlist's fds > and returns them in the list. The python3

[PATCH] perf python: Do not force closing original perf descriptor in evlist.get_pollfd

2018-12-26 Thread Jiri Olsa
Ondřej reported that when compiled with python3, the python extension regress in evlist.get_pollfd function behaviour. The evlist.get_pollfd creates file objects from evlist's fds and returns them in the list. The python3 version also sets them to 'close the original descriptor' when the object