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
F102148278: D31635.diff
Fri, Nov 8, 5:29 AM
F102126910: D31635.diff
Thu, Nov 7, 11:01 PM
Unknown Object (File)
Wed, Nov 6, 6:53 PM
Unknown Object (File)
Tue, Nov 5, 7:35 AM
Unknown Object (File)
Thu, Oct 24, 2:54 AM
Unknown Object (File)
Sat, Oct 19, 12:09 PM
Unknown Object (File)
Fri, Oct 18, 7:27 AM
Unknown Object (File)
Wed, Oct 16, 10:28 PM
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