[chinadtrace] Dtrace在Centos6.7上编译失败

  • From: Xi Wang <wangxi8512@xxxxxxxxx>
  • To: chinadtrace@xxxxxxxxxxxxx
  • Date: Wed, 13 Jan 2016 10:38:01 +0800

大家好,
大家帮忙看看呢:
1. sh get-deps-fedora.sh 执行成功
2. make all报错:
[root@localhost linux-master]# make all
BUILD_DIR=build-2.6.32-573.7.1.el6.x86_64 \
tools/mkdriver.pl driver-kmem ; \
tools/build.pl build-2.6.32-573.7.1.el6.x86_64 `uname -m`
tools/mkdriver.pl: $BUILD_DIR not defined of directory does not exist. at
tools/mkdriver.pl line 46.
gcc -o build-2.6.32-573.7.1.el6.x86_64/kcore tools/kcore.c
tools/check_dep.pl
tools/mkport.pl
insmod: can't read 'build/driver-kmem/dtrace_kmem.ko': No such file or
directory
ERROR: Module dtrace_kmem does not exist in /proc/modules
Failed to find offset
Use of uninitialized value $old_rsp in concatenation (.) or string at tools/
mkport.pl line 144.
old_rsp=
We cannot find old_rsp or per_cpu__old_rsp in your kernel.
Additionally, it looks like /proc/kcore is broken on your kernel,
meaning we cannot poke to find this variable, which helps identify
kernel thread offsets.
FATAL ERROR: cannot find old_rsp
FATAL ERROR: build.pl aborting
make: *** [all] Error 25
[root@localhost linux-master]# uname
Linux
[root@localhost linux-master]# uname -a
Linux localhost.localdomain 2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22
22:00:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Other related posts:

  • » [chinadtrace] Dtrace在Centos6.7上编译失败 - Xi Wang