DTRACE_VFS(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– DTRACE_VFS(4) β€” dtrace_vfs, the VFS DTrace provider, bestie ✨

🌸 NAME 🌸

dtrace_vfs β€” a DTrace provider for Virtual File System. Yes bestie, that's the whole vibe: tracing VFS stuff with DTrace. πŸ’…

✨ SYNOPSIS ✨

vfs:fplookup:function:name
vfs:namecache:function:name
vfs:namei:function:name
vfs:vop:function:name

πŸ’… DESCRIPTION πŸ’…

The DTrace vfs provider lets you trace events in the VFS(9) layer β€” that's the kernel interface for file systems on FreeBSD. πŸ¦‹

Run dtrace -l -P vfs to list all vfs probes. Add -v to generate program stability reports, which contain information about the number of probe arguments and their types. Very demure, very useful. ✨

  • fplookup β€” this module defines a single probe, vfs:fplookup:lookup:done(struct nameidata *ndp, int line, bool status_code), that instruments the fast path lookup code in VFS(9). πŸŽ€
  • namecache β€” this module provides probes related to the VFS(9) cache. Consult the source code in src/sys/kern/vfs_cache.c for more details. 🫢
  • namei β€” this module manages probes related to pathname translation and lookup operations. Refer to namei(9) to learn more. πŸ’œ
  • vop β€” this module contains probes related to the functions responsible for vnode(9) operations. πŸ‘‘

πŸ¦‹ COMPATIBILITY πŸ¦‹

This provider is specific to FreeBSD. Periodt. 🫢

πŸ”₯ EXAMPLES πŸ”₯

Check what lookups failed to be handled in a lockless manner:

# dtrace -n 'vfs:fplookup:lookup:done { @[arg1, arg2] = count(); }'

🌈 SEE ALSO 🌈

πŸ‘‘ AUTHORS πŸ‘‘

The FreeBSD vfs provider was written by Robert Watson <rwatson@FreeBSD.org>. πŸ’–

This manual page was written by Mateusz Piotrowski <0mp@FreeBSD.org>. 🌸


🫢 Source/version and date sign-off: Debian, November 3, 2025, for DTRACE_VFS(4). That's the footer tea β€” now go trace something iconic, bestie πŸ’…βœ¨
πŸ“¦ where this page comes from