linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf: python3 + tests attr.py failing
@ 2019-02-04 15:10 Arnaldo Carvalho de Melo
  2019-02-04 20:37 ` Jiri Olsa
  0 siblings, 1 reply; 7+ messages in thread
From: Arnaldo Carvalho de Melo @ 2019-02-04 15:10 UTC (permalink / raw)
  To: Jiri Olsa
  Cc: Namhyung Kim, Adrian Hunter, Tony Jones, Ravi Bangoria,
	Seeteena Thoufeek, Linux Kernel Mailing List

Noticed this now when building with PYTHON=python3, can you take a look?
For now I'm reinstalling python2-devel and building with it, i.e.
removing that PYTHON=python3 make command line variable.

[root@quaco ~]# perf test -v perf_event_attr
16: Setup struct perf_event_attr                          :
--- start ---
test child forked, pid 23937
  File "/home/acme/libexec/perf-core/tests/attr.py", line 325
    except Unsup, obj:
                ^
SyntaxError: invalid syntax
test child finished with -1
---- end ----
Setup struct perf_event_attr: FAILED!
[root@quaco ~]# find

Reverting back to building with python2-devel makes it work:

make O=/tmp/build/perf -C tools/perf install-bin

[acme@quaco perf]$ ldd ~/bin/perf | grep python
	libpython2.7.so.1.0 => /lib64/libpython2.7.so.1.0 (0x00007fe283792000)
[acme@quaco perf]$

[root@quaco ~]# perf test perf_event_attr
16: Setup struct perf_event_attr                          : Ok
[root@quaco ~]#

- Arnaldo

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-02-05 15:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-04 15:10 perf: python3 + tests attr.py failing Arnaldo Carvalho de Melo
2019-02-04 20:37 ` Jiri Olsa
2019-02-05 13:02   ` Arnaldo Carvalho de Melo
2019-02-05 13:08     ` Arnaldo Carvalho de Melo
2019-02-05 13:28       ` Arnaldo Carvalho de Melo
2019-02-05 13:49   ` Arnaldo Carvalho de Melo
2019-02-05 15:43     ` Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).