systemtap学习笔记

systemtap的注意事项:

1、 函数和探针是在关中断情况下运行

       Note that all SystemTap functions and probes run with interrupts disabled,

thus you cannot call functions that might sleep within the embedded C.

2、全局变量是有锁保证可以并发运行的

      The translator asserts certain safety constraints. It ensures that no handler routine can run for too long,allocate memory, perform unsafe operations, or unintentionally interfere with the kernel. Use of script

global variables is locked to protect against manipulation by concurrent probe handlers.

猜你喜欢

转载自xieyj.iteye.com/blog/1916756