美文网首页
stap探测程序的执行流程及调用堆栈

stap探测程序的执行流程及调用堆栈

作者: pandazhong | 来源:发表于2018-10-17 12:39 被阅读0次

脚本如下:

probe process.function("*") {

        printf("[%d]  %s  %s\n", gettimeofday_ms(), probefunc(), $$parms);

        print_ubacktrace();

}

说明:gettimeofday_ms()获取当前毫秒数,$$parms获取参数,print_ubacktrace()打印用户态堆栈

执行结果如下:

相关文章

网友评论

      本文标题:stap探测程序的执行流程及调用堆栈

      本文链接:https://www.haomeiwen.com/subject/gynlzftx.html