sudo bpftrace -e 'usdt:/usr/bin/python3:function__entry { printf("%s:%d %s\n", str(arg0), arg2, str(arg1))}'
scan@scan-virtual-machine:~/ebpf$ cat test.py
def test_fun1():
return('aaaaaaaaaaa')
print(test_fun1())
<frozen zipimport>:63 __init__
<frozen importlib._bootstrap_external>:135 _path_stat
<frozen importlib._bootstrap_external>:1597 path_hook_for_FileFinder
Lost 48 events
<frozen importlib._bootstrap_external>:1006 __init__
/home/scan/ebpf/test.py:1 <module>
/home/scan/ebpf/test.py:1 test_fun1