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, Oct 16, 12:31 AM
Unknown Object (File)
Thu, Oct 16, 12:31 AM
Unknown Object (File)
Sun, Oct 12, 8:09 AM
Unknown Object (File)
Sun, Oct 12, 8:09 AM
Unknown Object (File)
Sat, Oct 11, 9:30 PM
Unknown Object (File)
Sat, Sep 27, 9:02 AM
Unknown Object (File)
Thu, Sep 25, 6:24 AM
Unknown Object (File)
Wed, Sep 24, 6:45 PM
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 :)