TritonDataCenter / pkgsrc-joyent

Various pkgsrc packages used by Joyent, not committed upstream yet
30 stars 31 forks source link

Python and DTrace support #25

Closed xen0l closed 5 years ago

xen0l commented 8 years ago

Python 2.7 and Python 3.4 from pkgsrc should be patched to add full DTrace support. The patch is located here: https://www.jcea.es/artic/python_dtrace.htm

This adds full support for tracing Python programs (w/ ustack helper support as well) and could be of benefit to Python users using SmartOS. The patch is maintained by the developer everyitme a new version of Python comes out.

mamash commented 8 years ago

Thanks, I'll contact the author, none of these currently build for me:

dtrace: failed to compile script ./Include/pydtrace.d: line 128: syntax error near "PyEval_EvalFrameEx"

xen0l commented 8 years ago

Which versions did you try? I might run build myself and check it out. I was able to compile it on OpenIndiana.

mamash commented 8 years ago

Both 2.7 and 3.5 fail at the same thing. Trying to work the patches into the pkgsrc build of course, which is the only thing making sense.

jperkin commented 5 years ago

Close out old ticket, this was enabled a long time ago.