Page MenuHomeFreeBSD

subr_physmem_test: add tests for two edge-cases
ClosedPublic

Authored by mhorne on Jul 8 2024, 3:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 13, 3:52 PM
Unknown Object (File)
Thu, Jul 9, 5:31 AM
Unknown Object (File)
Tue, Jul 7, 2:01 PM
Unknown Object (File)
May 30 2026, 6:30 AM
Unknown Object (File)
May 29 2026, 7:19 PM
Unknown Object (File)
May 28 2026, 10:25 AM
Unknown Object (File)
Apr 24 2026, 6:22 AM
Unknown Object (File)
Apr 8 2026, 10:33 PM
Subscribers

Details

Summary

Help validate my recent assertion that "physmem will never report empty
ranges". Part of this is covered by the existing tests, which check the
merging of adjacent/overlapping regions. The other part is to ensure
that addition of zero-sized ranges is ignored.

The implementation also includes logic to ignore the first physical page
of memory (physical addresses 0 to PAGE_SIZE-1). Add a second test case
for this.

Diff Detail

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

Event Timeline

mhorne requested review of this revision.Jul 8 2024, 3:23 PM

Rather late, but the patch seems fine to me.

This revision is now accepted and ready to land.Mon, Jul 13, 3:59 PM

Rather late, but the patch seems fine to me.

Heh, thanks. I seem to still have the branch!