Re: perf script, libperf: python binding bug (bytearrays vs. strings)

2020-09-28 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 28, 2020 at 03:39:42PM +0200, Jiri Olsa escreveu: > On Mon, Sep 28, 2020 at 12:43:11PM +0200, Hagen Paul Pfeifer wrote: > > * Jiri Olsa | 2020-09-28 12:08:08 [+0200]: > > > > >patch below fixes it for me, but seems strange this was > > >working till now.. maybe you're the only one

Re: perf script, libperf: python binding bug (bytearrays vs. strings)

2020-09-28 Thread Jiri Olsa
On Mon, Sep 28, 2020 at 12:43:11PM +0200, Hagen Paul Pfeifer wrote: > * Jiri Olsa | 2020-09-28 12:08:08 [+0200]: > > >patch below fixes it for me, but seems strange this was > >working till now.. maybe you're the only one using this > >with python3 ;-) > > and I thought python2 is obsolete and

Re: perf script, libperf: python binding bug (bytearrays vs. strings)

2020-09-28 Thread Hagen Paul Pfeifer
* Jiri Olsa | 2020-09-28 12:08:08 [+0200]: >patch below fixes it for me, but seems strange this was >working till now.. maybe you're the only one using this >with python3 ;-) and I thought python2 is obsolete and not maintained anymore ... ;-) Anyway, the patch fixed everything: no more garbage

Re: perf script, libperf: python binding bug (bytearrays vs. strings)

2020-09-28 Thread Jiri Olsa
On Sun, Sep 27, 2020 at 09:43:12AM +0200, Hagen Paul Pfeifer wrote: > Hallo Jiri, Arnaldo, > > after updating Debian (probably with the advent of Python 3.8.5, guessing) > I get a wired behavior with python scripting. The error is that the python > type > for prev_comm and next_comm are not

Re: perf script, libperf: python binding bug (bytearrays vs. strings)

2020-09-27 Thread Hagen Paul Pfeifer
Short addendum: even under python2 not everything is perfect. It seems that the "comm-name-memory-reuse" problem is a general problem - for python3 and python2. In the following example the prev_comm name should be chrome only, but is "chromesandbox", common_comm is correctly "chrome". I believe

perf script, libperf: python binding bug (bytearrays vs. strings)

2020-09-27 Thread Hagen Paul Pfeifer
Hallo Jiri, Arnaldo, after updating Debian (probably with the advent of Python 3.8.5, guessing) I get a wired behavior with python scripting. The error is that the python type for prev_comm and next_comm are not strings anymore, rather bytearrays. Which are incompatible types and scripts will not