Skip to content

Conversation

@sdimitro
Copy link
Owner

This change enables SDB integration by allowing memory segments to have
both physical and virtual addresses. When drgn loads a vmcore created
with kdumpling, it can now read memory by virtual address directly.

Changes:

  • Add virt_addr parameter to add_memory_segment() (defaults to phys_addr)
  • Add effective_virt_addr property to MemorySegment dataclass
  • Update _write_elf() to set p_vaddr in PT_LOAD headers
  • Update DumpStats to include virtual addresses in segment tuples
  • Add comprehensive tests for virtual address support

https://claude.ai/code/session_018wj4HefWHH9naQ29a4pwr8

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.66%. Comparing base (a5d7c70) to head (e5c676d).
⚠️ Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #13      +/-   ##
===========================================
+ Coverage    92.60%   92.66%   +0.05%     
===========================================
  Files            5        5              
  Lines          757      763       +6     
===========================================
+ Hits           701      707       +6     
  Misses          56       56              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This change enables SDB integration by allowing memory segments to have
both physical and virtual addresses. When drgn loads a vmcore created
with kdumpling, it can now read memory by virtual address directly.

Changes:
- Add virt_addr parameter to add_memory_segment() (defaults to phys_addr)
- Add effective_virt_addr property to MemorySegment dataclass
- Update _write_elf() to set p_vaddr in PT_LOAD headers
- Update DumpStats to include virtual addresses in segment tuples
- Add comprehensive tests for virtual address support
- Add drgn integration tests for virtual address memory reading

https://claude.ai/code/session_018wj4HefWHH9naQ29a4pwr8
@sdimitro sdimitro force-pushed the claude/scope-kdumpling-sdb-ipBbR branch from 80c4332 to d8584de Compare January 29, 2026 21:08
Document the new virt_addr parameter for add_memory_segment() with
examples showing how to use it with drgn for virtual address reads.

https://claude.ai/code/session_018wj4HefWHH9naQ29a4pwr8
@sdimitro sdimitro merged commit cfdddf0 into develop Jan 29, 2026
14 checks passed
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