Linux: debug: systemtap: 如何调用内核函数

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html-single/systemtap_beginners_guide/index#mainsect-network

从这个实例可以看到,可以直接调用内核的代码。但是对于inline的就不行了,因为根本就找不到其代码地址。

probe kernel.function("tcp_accept").return?,
      kernel.function("inet_csk_accept").return? 

猜你喜欢

转载自blog.csdn.net/qq_36428903/article/details/132201040