linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] trace-cmd: Update python plugin for Python 3
@ 2019-07-19 22:46 Steven Rostedt
  2019-07-19 22:46 ` [PATCH 1/3] trace-cmd: Replace PySting_FromString() with PyUnicode_FromString() Steven Rostedt
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Steven Rostedt @ 2019-07-19 22:46 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: Johannes Berg, Josef Bacik, Darren Hart, troyengel

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(-)

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

end of thread, other threads:[~2019-07-26 15:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-19 22:46 [PATCH 0/3] trace-cmd: Update python plugin for Python 3 Steven Rostedt
2019-07-19 22:46 ` [PATCH 1/3] trace-cmd: Replace PySting_FromString() with PyUnicode_FromString() Steven Rostedt
2019-07-26  7:29   ` Johannes Berg
2019-07-19 22:46 ` [PATCH 2/3] trace-cmd: Use PyMemoryView_FromMemory() for Python 3 Steven Rostedt
2019-07-26  7:30   ` Johannes Berg
2019-07-19 22:46 ` [PATCH 3/3] trace-cmd: Use PyLong_AsLong() " Steven Rostedt
2019-07-26  7:31   ` Johannes Berg
2019-07-26 15:18     ` Steven Rostedt
2019-07-26 15:22       ` Johannes Berg
2019-07-26 15:30         ` Steven Rostedt

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).