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

  • From: Xi Wang <wangxi8512@xxxxxxxxx>
  • To: chinadtrace@xxxxxxxxxxxxx
  • Date: Fri, 19 Feb 2016 11:08:07 +0800

谢谢哈,回答的很专业,我主要在测试环境用用,生产环境没法用。
你主要从事哪方面工作?我主要做Java方面的

2016-02-19 10:57 GMT+08:00 Nan Xiao <nan@xxxxxxxxxxxxxxx>:

Hi Xi,

Systemtap只能用在Linux操作系统上;
DTrace在Solaris,FreeBSD,Max OS X和其它基于“illumos”内核的操作系统上都存在。Oracle把DTrace移植到了
自己Linux的发行版上,另外还有就是Paul Fox的dtrace4linux项目。

所以如果工作环境是Linux(非Oracle版本Linux),那么不大可能使用DTrace,因为dtrace4linux可能还不是那么成熟。
这时可以考虑使用Systemtap。Linux上可以选用的“tracing”工具很多,可以参考Brendan Gregg的这篇文章:
http://brendangregg.com/blog/2015-07-08/choosing-a-linux-tracer.html
,然后选择一个满足自己工作需要的。

我目前工作环境主要是Linux,实话实说,使用“tracing”工具的地方不是很多。

希望有所帮助!

------------------------------
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-02-19 10:34
*收件人:* chinadtrace <chinadtrace@xxxxxxxxxxxxx>
*主题:* [chinadtrace]Re: [chinadtrace] Re: [chinadtrace]Re: [chinadtrace]
Re: [chinadtrace]Dtrace在Centos6.7上编译失败
肖楠,
Dtrace和systemtap区别大不?你平时习惯用Dtrace还是Systemtap?

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

Hi Xi,

客气!

------------------------------
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 11:24
*收件人:* chinadtrace <chinadtrace@xxxxxxxxxxxxx>
*主题:* [chinadtrace]Re: [chinadtrace] Re:
[chinadtrace]Dtrace在Centos6.7上编译失败
 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]Re: [chinadtrace] Re: [chinadtrace]Re: [chinadtrace] Re: [chinadtrace]Dtrace在Centos6.7上编译失败 - Xi Wang