Page MenuHomeFreeBSD

libdtrace: Add vfs.d and define enum cache_fpl_status values there
AbandonedPublic

Authored by 0mp on Jul 15 2025, 3:24 PM.
Tags
Referenced Files
Unknown Object (File)
Thu, Jun 25, 6:50 AM
Unknown Object (File)
Sun, Jun 21, 10:08 PM
Unknown Object (File)
Thu, Jun 4, 8:54 PM
Unknown Object (File)
May 28 2026, 6:04 AM
Unknown Object (File)
May 23 2026, 1:27 AM
Unknown Object (File)
May 17 2026, 3:41 PM
Unknown Object (File)
May 17 2026, 6:46 AM
Unknown Object (File)
May 14 2026, 11:23 AM
Subscribers

Details

Summary

Enum cache_fpl_status contains different status values that can be
observed with the vfs:fplookup:lookup:done probe.

MFC after: 1 week
Relnotes: yes

Test Plan

Copy vfs.d to /usr/lib/dtrace and run

vfs:fplookup:lookup:done /(int64_t)args[0]->ni_dirp < 0 && arg2 == CACHE_FPL_STATUS_HANDLED/ {
        trace(stringof(args[0]->ni_dirp));
}

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65461
Build 62344: arc lint + arc unit

Event Timeline

0mp requested review of this revision.Jul 15 2025, 3:24 PM
0mp added reviewers: bnovkov, markj, christos.
0mp added a project: DTrace.

Please don't commit this. It's not necessary, and you're just hard-coding internal values from the kernel. The fplookup result status number is just an implementation detail and isn't part of any stable interface.

Great! Thanks for explaining, Mark :)