小结

本节以测量nanosleep()系统调用实际经过时间为例,介绍了SystemTap的使用方法。由于SystemTap使用的是kprobes,因此kprobes可以完成的工作基本上在SystemTap中也可以实现。