--- wikisrc/tutorials/how_to_enable_and_run_dtrace.mdwn 2017/03/22 15:33:08 1.14 +++ wikisrc/tutorials/how_to_enable_and_run_dtrace.mdwn 2017/04/08 21:38:18 1.18 @@ -1,4 +1,5 @@ -DTrace is a Dynamic Tracing framework developed by Sun and ported to NetBSD. It enables extensive instrumentation of the kernel and user space. See the [DTrace Community Page](http://dtrace.org) for more information. Also see [DTrace Introduction](http://dtrace.org/guide/preface.html). +DTrace is a Dynamic Tracing framework developed by Sun and ported to NetBSD. It enables extensive instrumentation of the kernel and user space. See the [DTrace Community Page](http://dtrace.org) for more information. +Also see [DTrace Introduction](http://dtrace.org/guide/preface.html), Brendan Gregg's [DTrace one liners](http://www.brendangregg.com/DTrace/dtrace_oneliners.txt) and his notes for [DTrace on FreeBSD](https://wiki.freebsd.org/DTrace/). # Current status @@ -7,7 +8,7 @@ DTrace is a Dynamic Tracing framework de DTrace is a work-in-progress effort and it is for x86 systems and some arm boards. * i386 and amd64 -* earm* (evbarm and armv4 based ports (armv4 side requires further testing but system is built with CTF) +* earm* (evbarm and armv4 based ports) ## Supported providers @@ -41,11 +42,14 @@ You need the following options in your k options MODULAR Optionally: + options INSECURE # permit modules to loaded from user space once system has gone multiuser and securelevel has been raised. A Distribution needs to be built with the options `MKDTRACE=yes` and `MKCTF=yes`, this is taken care of automatically and doesn't need to be specified manually. The list of platforms it is applied to automatically is set in `src/share/mk/bsd.own.mk` Set the system to load the solaris and dtrace related modules in `/etc/modules.conf`, for a list of available modules, see `/stand/$MACHINE/$VERSION/modules/` + +For example, add the following to `/etc/modules.conf` (the file may not exist already on a system): solaris dtrace