HomeFreeBSD

Add an mbuf provider to DTrace.

Description

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

Details

Provenance
gnnAuthored on
Reviewer
bz
Differential Revision
D5682: Add an mbuf provider for DTrace
Parents
rS297187: Support checksum offloading for TCP/IPV6 and UDP/IPV6.
Branches
Unknown
Tags
Unknown