freebsd-skq/share/dtrace/Makefile
George V. Neville-Neil 480f4e946d Add an mbuf provider to DTrace.
The mbuf provider is made up of a set of Statically Defined Tracepoints
which help us look into mbufs as they are allocated and freed.  This can be
used to inspect the buffers or for a simplified mbuf leak detector.

New tracepoints are:

mbuf:::m-init
mbuf:::m-gethdr
mbuf:::m-get
mbuf:::m-getcl
mbuf:::m-clget
mbuf:::m-cljget
mbuf:::m-cljset
mbuf:::m-free
mbuf:::m-freem

There is also a translator for mbufs which gives some visibility into the structure,
see mbuf.d for more details.

Reviewed by:	bz, markj
MFC after:	2 weeks
Sponsored by:	Rubicon Communications (Netgate)
Differential Revision:	https://reviews.freebsd.org/D5682
2016-03-22 13:16:52 +00:00

40 lines
574 B
Makefile

# $FreeBSD$
#
# Hand installing our scripts and optionally (based on MK_CDDL) installing
# the DTraceToolkit.
#
.include <src.opts.mk>
SUBDIR= ${_toolkit}
.if ${MK_CDDL} != "no"
_toolkit= toolkit
.endif
SCRIPTS= blocking \
disklatency \
disklatencycmd \
hotopen \
nfsattrstats \
nfsclienttime \
siftr \
tcpconn \
tcpdebug \
tcpstate \
tcptrack \
udptrack \
watch_execve \
watch_kill \
watch_vop_remove
SCRIPTSDIR= ${SHAREDIR}/dtrace
DSRCS= mbuf.d
FILES= ${DSRCS}
FILESDIR= /usr/lib/dtrace
FILESMODE= ${NOBINMODE}
.include <bsd.prog.mk>