Skip to content

Implement DynRelative / DynAbsolute field resolution#293

Merged
beaubelgrave merged 1 commit into
microsoft:mainfrom
utpilla:utpilla/Implement-dyn-field-resolution
Jun 16, 2026
Merged

Implement DynRelative / DynAbsolute field resolution#293
beaubelgrave merged 1 commit into
microsoft:mainfrom
utpilla:utpilla/Implement-dyn-field-resolution

Conversation

@utpilla

@utpilla utpilla commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Changes

Replaces the two todo!() arms in EventFormat::get_data_with_offset_direct with a real implementation that resolves Linux ftrace dynamic-location fields (__rel_loc / __data_loc). Previously, reading such a field would panic and abort the process; it now returns the correct payload slice, or EMPTY on a malformed/out-of-bounds descriptor, consistent with every other arm in the function.

@beaubelgrave beaubelgrave left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, thanks!

@beaubelgrave beaubelgrave merged commit 58746d3 into microsoft:main Jun 16, 2026
15 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