Skip to content

trace-cmd: Update python plugin for Python 3

Steven Rostedt linux-trace-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3trace-cmd: Replace PySting_FromString() with PyUnicode_FromString()python/ctracecmd.i+4 -41 reply
2/3trace-cmd: Use PyMemoryView_FromMemory() for Python 3python/ctracecmd.i+11 -21 reply
3/3trace-cmd: Use PyLong_AsLong() for Python 3python/ctracecmd.i+10 -34 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJohannes Berg
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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