Page MenuHomeFreeBSD

vm: simplify conditional for dumping startup pages
AcceptedPublic

Authored by bnovkov on Fri, May 3, 8:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 15, 8:47 AM
Unknown Object (File)
Mon, May 13, 5:54 PM
Unknown Object (File)
Mon, May 13, 7:34 AM
Unknown Object (File)
Mon, May 13, 7:34 AM
Unknown Object (File)
Wed, May 8, 12:41 AM
Unknown Object (File)
Wed, May 8, 12:39 AM
Unknown Object (File)
Tue, May 7, 8:15 PM
Unknown Object (File)
Tue, May 7, 6:39 PM

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.Thu, May 9, 5:07 PM