Repository navigation
pkg/symbolizer: strip compiler suffixes from function names - #8182
Open
paul-nikulshin wants to merge 1 commit into
Open
paul-nikulshin wants to merge 1 commit into
paul-nikulshin wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request implements stripping of compiler-generated suffixes (such as .isra, .constprop, .part, and .cold) from function names during symbolization, allowing different clones of a function to share the same interned name. It also adds comprehensive unit tests for this functionality. The review feedback suggests optimizing cleanFuncName with a fast path to avoid regex overhead for names without dots, and updating the test assertions to use github.com/stretchr/testify/assert to align with the repository style guide.
paul-nikulshin
force-pushed
the
master
branch
from
November 20, 2026 22:01
eb65767 to
e0334f9
Compare
paul-nikulshin
force-pushed
the
master
branch
from
November 25, 2026 14:13
e0334f9 to
6d39aed
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
🚀 New features to boost your workflow:
|
Function names reported by addr2line may contain compiler-generated suffixes such as .isra.12, .constprop.78, .part.2 and .cold.53, including chains like .isra.7.part.3. Depending on the PC, the same function can produce different names, which defeats deduplication in Interner and makes report names unstable. Strip the suffixes in parse() before interning the name.
paul-nikulshin
force-pushed
the
master
branch
from
November 26, 2026 14:44
6d39aed to
d113851
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Function names reported by addr2line may contain compiler-generated suffixes such as .isra.12, .constprop.78, .part.2 and .cold.53, including chains like .isra.7.part.3. Depending on the PC, the same function can produce different names, which defeats deduplication in Interner and makes report names unstable.
Strip the suffixes in parse() before interning the name.
Tests are based on real names from
pkg/report/testdata/linux.