1 Star2 Stars3 Stars4 Stars5 Stars (还没有评分)
Loading...

在OmniOS上使用DTrace

OmniOS上使用DTrace需要手动安装dtrace和 dtrace/providers安装包:

$ pfexec pkg install dtrace dtrace/providers

否则会遇到如下错误:

$ pfexec dtrace -n 'syscall:::'
dtrace: failed to initialize dtrace: DTrace device not available on system

此外还要检查DTrace模块是否加载成功:

$ modinfo | grep dtrace
  5 fffffffff8243000  1af28 280   1  dtrace (Dynamic Tracing)

参考资料:
Use DTrace on OmniOS

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.