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

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

Hi 肖楠,
我用的是昨天从github上直接download下来的,因该是最新的。
我给Paul发邮件了。谢谢哈。

BR

On Wed, Jan 13, 2016 at 11:17 AM, Nan Xiao <nan@xxxxxxxxxxxxxxx> wrote:

Hi Xi,

(1)你用的是dtrace4linux的最新版本吗?
(2)我在CentOS7.1上至少可以编译成功,但是执行有问题,还在找原因。
(3)如果是生产环境,不建议使用dtrace4linux,可能会把系统搞挂。
(4)不确定是否CentOS6.7的kernel是否有点老,你可以直接发邮件给作者Paul讨论。
我发过两次邮件,感觉人比较nice。

希望有所帮助!

------------------------------
Best Regards
Nan Xiao (肖楠)
Skype: xiaonan19830818
Jabber/XMPP: nanxiao@xxxxxxxxxxx
Telegram: nanxiao
Personal website (Chinese): http://nanxiao.me/
Personal website (English): http://nanxiao.me/en
Chinese DTrace website: http://chinadtrace.org/


*发件人:* Xi Wang <wangxi8512@xxxxxxxxx>
*发送时间:* 2016-01-13 10:38
*收件人:* chinadtrace <chinadtrace@xxxxxxxxxxxxx>
*主题:* [chinadtrace]Dtrace在Centos6.7上编译失败
大家好,
大家帮忙看看呢:
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] Re: [chinadtrace] Re: [chinadtrace]Dtrace在Centos6.7上编译失败 - Xi Wang