Page MenuHomeFreeBSD

dtrace: Disable getf() as it is broken on FreeBSD.
ClosedPublic

Authored by domagoj.stolfa_gmail.com on Dec 10 2021, 7:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 6 2024, 12:25 PM
Unknown Object (File)
Mar 4 2024, 8:09 AM
Unknown Object (File)
Jan 15 2024, 9:26 AM
Unknown Object (File)
Dec 25 2023, 1:25 AM
Unknown Object (File)
Dec 20 2023, 3:31 AM
Unknown Object (File)
Dec 10 2023, 10:39 AM
Unknown Object (File)
Nov 10 2023, 5:42 PM
Unknown Object (File)
Nov 8 2023, 5:55 PM
Subscribers

Details

Summary

getf() on FreeBSD calls _sx_slock(), _sx_sunlock() and fget_locked().
Furthermore, it does not set the per-core fault flag, meaning it
usually ends up in a double fault panic once getf() does get called,
especially from fbt.

Reviewing the DTrace Toolkit + a number of other scripts scattered
around FreeBSD, I have not been able to find one use of getf(). Given
how broken the implementation currently is, we disable it until it
can be implemented properly.

Also comment out a test in aggs/tst.subr.d for getf().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable