Page MenuHomeFreeBSD

vm: simplify conditional for dumping startup pages
ClosedPublic

Authored by bnovkov on May 3 2024, 8:26 PM.
Tags
None
Referenced Files
F125612705: D45085.id139091.diff
Sat, Aug 9, 11:12 PM
F125599788: D45085.diff
Sat, Aug 9, 6:57 PM
Unknown Object (File)
Fri, Aug 8, 11:06 AM
Unknown Object (File)
Sun, Aug 3, 6:27 AM
Unknown Object (File)
Sat, Aug 2, 3:17 AM
Unknown Object (File)
Wed, Jul 30, 9:54 AM
Unknown Object (File)
Mon, Jul 21, 1:39 PM
Unknown Object (File)
Mon, Jul 14, 3:45 AM

Details

Summary

This patch introduces the MINIDUMP_STARTUP_PAGE_TRACKING symbol and uses it to simplify several instances of a complex check for adding startup pages to minidumps.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Thanks for this. Seems good to me, with one question inline.

Edit: you missed the update of vmparam.h for 32-bit arm.

sys/vm/vm_page.c
623

Why is this condition different than the others?

Add missing arm vmparam.h updates.

sys/vm/vm_page.c
623

I wanted to avoid adding another #if MINIDUMP_PAGE_TRACKING && MINIDUMP_STARTUP_PAGE_TRACKING, so I've moved the #if MINIDUMP_STARTUP_PAGE_TRACKING block under the MINIDUMP_PAGE_TRACKING block defined on line 598.

The condition is still the same, but less verbose.

mhorne added inline comments.
sys/vm/vm_page.c
623

Thanks, I see now.

This revision is now accepted and ready to land.May 9 2024, 5:07 PM