SystemTap 简单演示失败 - Ubuntu 14.04

SystemTap 简单演示失败 - Ubuntu 14.04

开始学习系统点击使用RedHat的手册。这里是例子我正在尝试逃跑。

执行时stap open.stp我收到错误:

[root@ror6ax ~]# stap open.stp
semantic error: while resolving probe point: identifier 'syscall' at open.stp:1:7
        source: probe syscall.open
                      ^

semantic error: no match
Pass 2: analysis failed.  [man error::pass2]

open.stp如下:

probe syscall.open
{
  printf ("%s(%d) open\n", execname(), pid())
}

系统是Ubuntu 14.04

我的问题类似于这个,但适用于不同的操作系统。

答案1

我按照以下说明进行操作这一页:

   codename=$(lsb_release -c | awk  '{print $2}')
   sudo tee /etc/apt/sources.list.d/ddebs.list << EOF
deb http://ddebs.ubuntu.com/ ${codename}      main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-updates  main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-proposed main restricted universe multiverse
EOF

   sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01
   sudo apt-get update
   sudo apt-get install linux-image-$(uname -r)-dbgsym

此后,程序运行正常。

相关内容