[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