[issue4111] Add DTrace probes
Ted Leung <[EMAIL PROTECTED]> added the comment: And courtesy of Philip Jenvey, here I am. I would *really* like to work to help make this happen. Laszlo Peter at Sun has been doing the ports of Python on Solaris, but we are not up to 2.6 just yet. I'm attaching a pointer to his patches against 2.5: http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/Python25-07-dtrace.diff These patches include John Levon's ustack provider, which if you care about DTrace and Python, you want to have. I've also had some conversations with people at Apple, and they have agreed that they will pull DTrace probes from python.org if they got in there. That would solve the diverging probe problem. I'd love to have a discussion about DTrace probe futures for CPython -- probably on python-dev. -- nosy: +twleung ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4111> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add DTrace probes
Ted Leung added the comment: On Jan 22, 2009, at 1:35 PM, Skip Montanaro wrote: > > Skip Montanaro added the comment: > > So I completely dropped the ball on this. It appears we have some > folks from Sun and Brett surmised that Ronald Oussoren would be the > likely person to do the heavy lifting on the Apple side of things. > Ronald, I've made you nosy. I will try to get the Solaris patch Ted > referenced running against the trunk (2.7) and py3k (3.1) code bases, > but it would be helpful if you could take a quick stab at it as well. Great. Actually the latest version of the patch is this one: <http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/Python26-07-dtrace.diff >. I tried to quickly compile it on MacOS 10.5, Python 2.6.1, but it didn't work right out of the box. Ted Added file: http://bugs.python.org/file12835/unnamed ___ Python tracker <http://bugs.python.org/issue4111> ___On Jan 22, 2009, at 1:35 PM, Skip Montanaro wrote:Skip Montanaro <mailto:s...@pobox.com";>s...@pobox.com> added the comment:So I completely dropped the ball on this. It appears we have somefolks from Sun and Brett surmised that Ronald Oussoren would be thelikely person to do the heavy lifting on the Apple side of things.Ronald, I've made you nosy. I will try to get the Solaris patch Tedreferenced running against the trunk (2.7) and py3k (3.1) code bases,but it would be helpful if you could take a quick stab at it as well.Great. Actually the latest version of the patch is this one: <http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/Python26-07-dtrace.diff";>h ttp://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/Python26-07-dtrace.diff>. I tried to quickly compile it on MacOS 10.5, Python 2.6.1, but it didn't work right out of the box.Ted___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add DTrace probes
Ted Leung added the comment: I tried building this on my Mac and got this; ar cr libpython2.7.a Python/_warnings.o Python/Python-ast.o Python/ asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/ compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/ frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/ graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/ modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyfpe.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/ sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/formatter_unicode.o Python/formatter_string.o Python/dynload_shlib.o @DTRACEOBJS@ Python/mactoolboxglue.o Python/ thread.o ar: @DTRACEOBJS@: No such file or directory make: *** [libpython2.7.a] Error 1 my configure line was: ./configure --enable-framework --enable-toolbox-glue --with-threads -- enable-dtrace On Jan 25, 2009, at 2:00 PM, Skip Montanaro wrote: > > Skip Montanaro added the comment: > > Here's a patch against the current trunk (2.7) which compiles on my > Mac. It > adds a --with-dtrace configure option. The code checks to see if > the -G > option is understood by the dtrace command. If so, dtrace support > is added > Sun-style. If not we do things Apple's way. > > The existing test cases pass on Apple except for one case in > test_sys which > tries to confirm the size of a frame object. I added an #ifdef > WITH_DTRACE > around the extra slot but there is no way of telling from Python > code that > this extra slot is there. That would have to somehow be exposed to > the > Python programmer so the test can be adjusted. All tests pass when > --with-dtrace is omitted. I have not yet tried this on Solaris. I > will try > to get to it this week if someone doesn't beat me to it. > > There are as yet no new dtrace test cases so I can't confirm that > the added > dtrace support actually works. There are also no documentation > updates. > Unlike most compile options this adds a significant new feature to the > runtime environment so some documentation changes are probably > called for. > > Added file: http://bugs.python.org/file12861/dtrace.diff > > ___ > Python tracker > <http://bugs.python.org/issue4111> > ___ ___ Python tracker <http://bugs.python.org/issue4111> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add DTrace probes
Ted Leung added the comment: I didn't run auto(re)conf. After I did that, all was well. However, the ustack provider doesn't appear to be working correctly. I tried running the py_profile.d from the DTrace toolkit, and it doesn't show any stack traces, and when the script starts up it says cc1: warning: /dev/fd/5 is shorter than expected The basic function entry/exit probes appear to be working. John +nosy'ed himself, so perhaps he'll have some insight? On Jan 27, 2009, at 3:39 PM, Skip Montanaro wrote: > > Skip Montanaro added the comment: > > Ted> I tried building this on my Mac and got this; > > Forgive me if I'm preaching to the choir here. > > Did you run autoconf or autoreconf after applying the patch? If not, > @DTRACEOBJS@ would not be a substitutable string. It's fairly > common (at > least in the Python community) to omit modified configure scripts > from these > sorts of patches because the changes to generated configure scripts > between > different versions of autoconf are so massive that they dwarf the > actual > functional changes in the patch, often by a couple orders of > magnitude. > > Skip > > ___ > Python tracker > <http://bugs.python.org/issue4111> > ___ ___ Python tracker <http://bugs.python.org/issue4111> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add DTrace probes
Ted Leung added the comment: On Apr 22, 2009, at 1:24 PM, Skip Montanaro wrote: > > Skip Montanaro added the comment: > > Sorry, I've been away from this issue. I was sort of hoping the Sun > and > Apple folks would just work things out amongst themselves and > present us > with a fait accompli. ;-) I'll try to mess around with this a little. I've been in touch with some folks at Apple about this, but it's not at the very top of their priority list -- Added file: http://bugs.python.org/file13741/unnamed ___ Python tracker <http://bugs.python.org/issue4111> ___On Apr 22, 2009, at 1:24 PM, Skip Montanaro wrote:Skip Montanaro <mailto:s...@pobox.com";>s...@pobox.com> added the comment:Sorry, I've been away from this issue. I was sort of hoping the Sun andApple folks would just work things out amongst themselves and present uswith a fait accompli. ;-) I'll try to mess around with this a little.I've been in touch with some folks at Apple about this, but it's not at the very top of their priority list ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com