equal
deleted
inserted
replaced
1 This patch adds Python dtrace support. Note it is necessary to modify |
1 This patch adds Python dtrace support. Note it is necessary to modify |
2 test_sys.py to add an integer to the frameobject structure size since this |
2 test_sys.py to add an integer to the frameobject structure size since this |
3 patch adds "int f_calllineno" to the structure, so this test does not fail. |
3 patch adds "int f_calllineno" to the structure, so this test does not fail. |
|
4 The patch comes from upstream: |
|
5 http://www.jcea.es/artic/python_dtrace-2_7_7_af8ecf2352e1.txt |
|
6 http://www.jcea.es/artic/python_dtrace.htm |
|
7 Follow http://bugs.python.org/issue13405 for plans to get it |
|
8 integrated into the main tree. |
4 |
9 |
5 --- Python-2.7.6/Makefile.pre.in.~1~ 2013-11-09 23:36:41.000000000 -0800 |
10 --- Python-2.7.6/Makefile.pre.in.~1~ 2013-11-09 23:36:41.000000000 -0800 |
6 +++ Python-2.7.6/Makefile.pre.in 2014-05-14 12:54:43.824219677 -0700 |
11 +++ Python-2.7.6/Makefile.pre.in 2014-05-14 12:54:43.824219677 -0700 |
7 @@ -218,6 +218,7 @@ |
12 @@ -218,6 +218,7 @@ |
8 # Used of signalmodule.o is not available |
13 # Used of signalmodule.o is not available |
412 +#pragma D attributes Evolving/Evolving/Common provider python provider |
417 +#pragma D attributes Evolving/Evolving/Common provider python provider |
413 +#pragma D attributes Private/Private/Common provider python module |
418 +#pragma D attributes Private/Private/Common provider python module |
414 +#pragma D attributes Private/Private/Common provider python function |
419 +#pragma D attributes Private/Private/Common provider python function |
415 +#pragma D attributes Evolving/Evolving/Common provider python name |
420 +#pragma D attributes Evolving/Evolving/Common provider python name |
416 +#pragma D attributes Evolving/Evolving/Common provider python args |
421 +#pragma D attributes Evolving/Evolving/Common provider python args |
417 --- Python-2.7.6/Lib/test/test_sys.py.~1~ 2013-11-09 23:36:40.000000000 -0800 |
422 --- Python-2.7.7/Lib/test/test_sys.py.~1~ 2014-05-31 11:58:39.000000000 -0700 |
418 +++ Python-2.7.6/Lib/test/test_sys.py 2014-05-14 13:07:05.332748121 -0700 |
423 +++ Python-2.7.7/Lib/test/test_sys.py 2014-06-02 10:44:39.318709539 -0700 |
419 @@ -612,7 +612,7 @@ |
424 @@ -594,7 +594,7 @@ |
420 nfrees = len(x.f_code.co_freevars) |
425 nfrees = len(x.f_code.co_freevars) |
421 extras = x.f_code.co_stacksize + x.f_code.co_nlocals +\ |
426 extras = x.f_code.co_stacksize + x.f_code.co_nlocals +\ |
422 ncells + nfrees - 1 |
427 ncells + nfrees - 1 |
423 - check(x, vsize('12P3i' + CO_MAXBLOCKS*'3i' + 'P' + extras*'P')) |
428 - check(x, vsize('12P3i' + CO_MAXBLOCKS*'3i' + 'P' + extras*'P')) |
424 + check(x, vsize('12P4i' + CO_MAXBLOCKS*'3i' + 'P' + extras*'P')) |
429 + check(x, vsize('12P4i' + CO_MAXBLOCKS*'3i' + 'P' + extras*'P')) |