mbox series

[0/3] trace-cmd: Update python plugin for Python 3

Message ID 20190719224613.207069107@goodmis.org (mailing list archive)
Headers show
Series trace-cmd: Update python plugin for Python 3 | expand

Message

Steven Rostedt July 19, 2019, 10:46 p.m. UTC
As reported here:

  https://bugzilla.kernel.org/show_bug.cgi?id=204231

The trace-cmd python plugin doesn't build properly for Python 3.
As Python 2 is going to be EOL soon, these should fix that. Note,
I'm not strong in using python, and these changes basically came from
googling how to handle these deprecations. Please have a look to
see if I didn't break anything.

Steven Rostedt (VMware) (3):
      trace-cmd: Replace PySting_FromString() with PyUnicode_FromString()
      trace-cmd: Use PyMemoryView_FromMemory() for Python 3
      trace-cmd: Use PyLong_AsLong() for Python 3

----
 python/ctracecmd.i | 30 +++++++++++++++++++++++-------
 1 file changed, 23 insertions(+), 7 deletions(-)