【发布时间】:2023-04-06 19:47:01
【问题描述】:
我用Issue 13405 修补了Python 2.7.3,然后用--with-dtrace
配置选项编译了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' != ...
【问题讨论】:
标签:
python
osx-mountain-lion
cpython
dtrace
probe
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:Python Dtrace 已修补,但运行测试脚本时仍出现“无效的探针说明符” - Python技术站