[python-madrid] DTrace probes in Python 2.7 (and next 3.3)
Jesus Cea
jcea at jcea.es
Thu Nov 24 17:46:48 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all.
I have spend some time trying to integrate DTrace probes in official
Python: Currently I have a patch to python 2.7, and my plan in to
integrate officially in 3.3.
The initial probes were based on previous work from OpenSolaris, and
similar, but currently I have quite a few more probes. Current details
in
<http://hg.jcea.es/cpython-2011/file/b1a39702dfd8/Doc/library/dtrace.rst>
The probes are tested under Solaris 10 x86 and x86-64. I would need
somebody to try on Solaris 10 Sparc (32 and 64 bits), Solaris 11,
OpenIndiana, FreeBSD (seems to need a kernel recompilation to enable
user mode tracing, check Google), Mac (I doubt it works as is), etc.,
any other platform running DTrace. What about SystemTap compatibility?
Details: <http://bugs.python.org/issue13405>
How to check: <http://bugs.python.org/issue13405#msg147706>.
The easier way to get the patch is to clone my repository at
<https://hg.jcea.es/cpython-2011/> (with mercurial) and move to the
branch "dtrace-issue13405_2.7". Keep the clone around if you plan to
try future versions of this patch, including the future 3.3 version.
You can manually apply the patch in
<http://bugs.python.org/file23758/a9f4ae43fd85.diff> to python 2.7.2+
sourcecode. The patch is developed against version 3c3009f63700
(2011-11-14). It might not apply cleanly to 2.7.2 sourcecode (not
checked). I will provide a direct patch to 2.7.3 when available. Maybe
to 2.7.2 if there is demand.
This is still work in progress. I will improve support with your
feedback. I am considering probes to monitor GIL and thinking how to
monitor C function calls from Python in an easy and fast way. Feedback
very welcomed.
Please, if you care about this, test it and provide some feedback :).
PS: Better post feedback in the bug tracker that by personal email :-).
- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/_/_/_/
. _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQCVAwUBTs50+Jlgi5GaxT1NAQKWUwQAnl99nFd6nM5yiPGl8yw4/YR81BTIS563
3wyPz74o5wAE3k9quexr+UPCndPogiH6nhnJ9DNXfUpVyaouGG/tGEbZn/x+h7Dv
jc5616IRnHxGAxxuoTscCRRN88zsPVY6i71QMxK2BOS+zXMdcrsBajLrmx1UIzHY
Elr7fq8L988=
=uQM5
-----END PGP SIGNATURE-----
--
Grupo de usuarios de python ubicados en Madrid
http://groups.google.es/group/python-madrid
http://python-madrid.es
http://twitter.com/#!/python_madrid
Para darte de baja del grupo envía un mensaje a python-madrid+unsubscribe at googlegroups.com
More information about the Madrid
mailing list