ebpf 跟踪应用程序函数

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())

:63 __init__
:135 _path_stat
:1597 path_hook_for_FileFinder
Lost 48 events
:1006 __init__
/home/scan/ebpf/test.py:1
/home/scan/ebpf/test.py:1 test_fun1
 

你可能感兴趣的:(EBPF,前端,javascript,开发语言)