systemtap-python-tools
systemtap-python-tools copied to clipboard
_PyObject_Malloc function not found
Looks like debug symbols on Ubuntu 18.04 Python 2.7.15rc1 does not contain said symbol. Instead one without underscore seems to work. PyObject_Malloc . Same for free function as well.
sanket@tfs:~/workspace/systemtap-python-tools$ sudo !!
sudo ./scripts/memtrace -x 13046 -t 60
semantic error: while resolving probe point: identifier 'process' at /home/sanket/workspace/systemtap-python-tools/scripts/memtrace.stp:4:7
source: probe process.function("_PyObject_Malloc").return {
^
semantic error: no match (similar functions: PyObject_Malloc, PyObject_Realloc, _PyObject_GC_Malloc, PyCObject_dealloc, PyObject_Call)