SystemTap笔记01测试运行

本文档介绍了SystemTap的基本脚本组成部分,包括probe、function的使用,以及在实际操作中如何试运行systemtap_beginners_guide来学习和理解SystemTap。
摘要由CSDN通过智能技术生成
[paulc@centos7 ~]$ echo "probe timer.s(1) {exit()}" | stap -v -
Pass 1: parsed user script and 477 library scripts using 281320virt/76344res/3572shr/73020data kb, in 150usr/1290sys/1756real ms.
Pass 2: analyzed script: 1 probe, 1 function, 0 embeds, 0 globals using 283168virt/78448res/3804shr/74868data kb, in 0usr/30sys/32real ms.
Pass 3: translated to C into "/tmp/stapPf1NCg/stap_bf224ca35eeda4690bcd3a54d1f10028_998_src.c" using 283168virt/78952res/4284shr/74868data kb, in 0usr/10sys/1real ms.
Pass 4: compiled C into "stap_bf224ca35eeda4690bcd3a54d1f10028_998.ko" in 1520usr/1790sys/3503real ms.
Pass 5: starting run.
WARNING: /usr/bin/staprun is not executable (Permission denied)
WARNING: /usr/bin/staprun exited with status: 127
Pass 5: run completed in 0usr/0sys/0real ms.
Pass 5: run failed.  [man error::pass5]

stp脚本的成分:

脚本可以去这里找一个试运行systemtap_beginners_guide

1 probe, 1 function, 0 embeds, 0 globals

[root@centos7 test]$  stap strace-open.stp 
irqbalance(795) open ("/proc/interrupts", O_RDONLY)
irqbalance(795) open 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值