Skip to content

capi: Expose KASLR offset on blaze_symbolize_src_kernel#1572

Draft
d-e-s-o wants to merge 1 commit into
libbpf:mainfrom
d-e-s-o:topic/capi-kaslr-offset
Draft

capi: Expose KASLR offset on blaze_symbolize_src_kernel#1572
d-e-s-o wants to merge 1 commit into
libbpf:mainfrom
d-e-s-o:topic/capi-kaslr-offset

Conversation

@d-e-s-o

@d-e-s-o d-e-s-o commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Right now the offset of providing a pre-determined KASLR offset to the library is exclusive to the core Rust part. C API users may reasonably want to use this input as well.

Add the kaslr_offset member to the blaze_symbolize_src_kernel type to make it accessible. The member is a pointer, with a NULL value preserving the current behavior of automatically determining the KASLR offset (if necessary) and a non-NULL one being used as-is.

Right now the offset of providing a pre-determined KASLR offset to the
library is exclusive to the core Rust part. C API users may reasonably
want to use this input as well.

Add the kaslr_offset member to the blaze_symbolize_src_kernel type to
make it accessible. The member is a pointer, with a NULL value
preserving the current behavior of automatically determining the KASLR
offset (if necessary) and a non-NULL one being used as-is.

Signed-off-by: Daniel Müller <deso@posteo.net>
@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.25%. Comparing base (6e58ddd) to head (533630f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1572      +/-   ##
==========================================
- Coverage   96.33%   96.25%   -0.08%     
==========================================
  Files          56       56              
  Lines       11037    11037              
==========================================
- Hits        10632    10624       -8     
- Misses        405      413       +8     

☔ 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.

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.

1 participant