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)
Sun, May 17, 3:41 PM
Unknown Object (File)
Sun, May 17, 6:46 AM
Unknown Object (File)
Thu, May 14, 11:23 AM
Unknown Object (File)
Thu, May 14, 11:23 AM
Unknown Object (File)
Mon, May 11, 4:08 PM
Unknown Object (File)
Mon, May 11, 4:07 PM
Unknown Object (File)
Mon, May 11, 3:45 AM
Unknown Object (File)
Mon, May 11, 2:33 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 :)