diff options
author | gnn <gnn@FreeBSD.org> | 2012-07-11 16:27:02 +0000 |
---|---|---|
committer | gnn <gnn@FreeBSD.org> | 2012-07-11 16:27:02 +0000 |
commit | 786ac825530572ff02b9440ed00f28096197f9b9 (patch) | |
tree | eabb05d032e7a979640db2928991f11bb1d8758f /sys/modules/dtrace | |
parent | ec38b41c3eecfc3b4fb8ebfac57ad414dd1aa654 (diff) | |
download | FreeBSD-src-786ac825530572ff02b9440ed00f28096197f9b9.zip FreeBSD-src-786ac825530572ff02b9440ed00f28096197f9b9.tar.gz |
Initial commit of an I/O provider for DTrace on FreeBSD.
These probes are most useful when looking into the structures
they provide, which are listed in io.d. For example:
dtrace -n 'io:genunix::start { printf("%d\n", args[0]->bio_bcount); }'
Note that the I/O systems in FreeBSD and Solaris/Illumos are sufficiently
different that there is not a 1:1 mapping from scripts that work
with one to the other.
MFC after: 1 month
Diffstat (limited to 'sys/modules/dtrace')
-rw-r--r-- | sys/modules/dtrace/Makefile | 1 | ||||
-rw-r--r-- | sys/modules/dtrace/dtio/Makefile | 13 | ||||
-rw-r--r-- | sys/modules/dtrace/dtraceall/dtraceall.c | 1 |
3 files changed, 15 insertions, 0 deletions
diff --git a/sys/modules/dtrace/Makefile b/sys/modules/dtrace/Makefile index f8f3785..02423e9 100644 --- a/sys/modules/dtrace/Makefile +++ b/sys/modules/dtrace/Makefile @@ -9,6 +9,7 @@ SUBDIR= dtmalloc \ dtrace \ dtraceall \ dtrace_test \ + dtio \ prototype \ sdt \ systrace diff --git a/sys/modules/dtrace/dtio/Makefile b/sys/modules/dtrace/dtio/Makefile new file mode 100644 index 0000000..ff68ce4 --- /dev/null +++ b/sys/modules/dtrace/dtio/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../kern + +KMOD= dtio +SRCS= dtio_kdtrace.c \ + vnode_if.h + +CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \ + -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \ + -I${.CURDIR}/../../.. + +.include <bsd.kmod.mk> diff --git a/sys/modules/dtrace/dtraceall/dtraceall.c b/sys/modules/dtrace/dtraceall/dtraceall.c index 61896bf..9d7a23d 100644 --- a/sys/modules/dtrace/dtraceall/dtraceall.c +++ b/sys/modules/dtrace/dtraceall/dtraceall.c @@ -65,6 +65,7 @@ MODULE_VERSION(dtraceall, 1); MODULE_DEPEND(dtraceall, cyclic, 1, 1, 1); MODULE_DEPEND(dtraceall, opensolaris, 1, 1, 1); MODULE_DEPEND(dtraceall, dtrace, 1, 1, 1); +MODULE_DEPEND(dtraceall, dtio, 1, 1, 1); MODULE_DEPEND(dtraceall, dtmalloc, 1, 1, 1); MODULE_DEPEND(dtraceall, dtnfscl, 1, 1, 1); MODULE_DEPEND(dtraceall, dtnfsclient, 1, 1, 1); |