Page MenuHomeFreeBSD

vm: use __func__ for the correct function name
ClosedPublic

Authored by bz on Aug 22 2021, 5:25 PM.
Tags
None
Referenced Files
F165336571: D31635.id94023.diff
Fri, Aug 7, 5:24 PM
F165299684: D31635.id94025.diff
Fri, Aug 7, 12:30 PM
Unknown Object (File)
Thu, Aug 6, 3:00 AM
Unknown Object (File)
Thu, Aug 6, 12:57 AM
Unknown Object (File)
Wed, Aug 5, 4:55 AM
Unknown Object (File)
Thu, Jul 23, 12:48 AM
Unknown Object (File)
Wed, Jul 22, 2:14 PM
Unknown Object (File)
Jun 15 2026, 2:20 AM
Subscribers

Details

Summary

In fee2a2fa39834d8d5eaa981298fce9d2ed31546d the KASSERTs in
vm_page_unwire_noq() changed from "vm_page_unwire" to "vm_page_unref".
While the former no longer was part of that function the latter does
not exist as a function and is highly confusing when hit when using
tools to lookup the functions and not doing a full-text search.
Use %s func for printing the function name, as that will do the
right thing as code moves around and functions get renamed.

Hit: while debugging a wired page leak with linuxkpi/iwlwifi
Sponsored by: The FreeBSD Foundation

Diff Detail

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