我用Issue 13405修补了 Python 2.7.3 ,然后用--with-dtrace
configure 选项编译了 python 。
当我运行 test_dtrace 脚本时,测试失败并出现错误:
无效的探测说明符
如下所示:
======================================================================
FAIL: test_function_entry_return (test_dtrace.DTraceTestsNormal)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_dtrace.py", line 99, in test_function_entry_return
self.assertEqual(actual_result, expected_result)
AssertionError: 'dtrace: invalid probe specifier python*$target:::function-entry{ printf("Function entry %d ", timestamp);}python*$target:::function-entry,python*$target:::function-return{ printf("%d\t**%s*%s*%s*%d\\n", timestamp, probename, copyinstr(arg0), copyinstr(arg1), arg2);}python*$target:::function-return/(copyinstr(arg0)=="/Users/ramandeep/src/src/Python-2.7.3/dtrace_sample.py") &&(copyinstr(arg1)=="test_entry_return_and_stack")/{ self->trace = 0;}: probe description python*36447:::function-entry does not match any probes' != ...