Skip to content

[KernelCache] Set region display names#8267

Closed
jonpalmisc wants to merge 1 commit into
Vector35:devfrom
jonpalmisc:kc_region_display_name
Closed

[KernelCache] Set region display names#8267
jonpalmisc wants to merge 1 commit into
Vector35:devfrom
jonpalmisc:kc_region_display_name

Conversation

@jonpalmisc

Copy link
Copy Markdown
Contributor

Pretty self-explanatory. Only bit I'm unsure of is the nomenclature for zerofill gaps ($ZEROFILL suffix currently), or whether they should be even labeled at all.

Let me know if/what you want changed.

@jonpalmisc

Copy link
Copy Markdown
Contributor Author

Unlike my last meme PR this one is actually of great importance to me. Will offer bribes to merge if necessary.

auto fillRegion = memoryMap->GetActiveMemoryRegionAt(fillStart);

if (!fillRegion.empty() && fillRegion != region)
memoryMap->SetMemoryRegionDisplayName(fillRegion, displayName + "$ZEROFILL");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest taking inspiration from MachoView for the naming of the zero filled portion:

uint64_t zeroFillStart = segment.vmaddr + segment.filesize;
auto zeroFillRegion = memoryMap->GetActiveMemoryRegionAt(zeroFillStart);
if (!zeroFillRegion.empty())
memoryMap->SetMemoryRegionDisplayName(zeroFillRegion, segmentName + " (zero fill)");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks

This makes it easier to obtain the bounds of segments and mirrors the
functionality of the shared cache support.
@jonpalmisc jonpalmisc force-pushed the kc_region_display_name branch from 60a73f8 to f651f7c Compare June 16, 2026 01:22
@bdash

bdash commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Rebased + merged to dev in e2bcf29. Thanks!

@bdash bdash closed this Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants