Skip to content

Support kernel modules for text profiles#264

Merged
shenhanc78 merged 1 commit into
google:masterfrom
yabinc:kernel-module-support
Jun 24, 2026
Merged

Support kernel modules for text profiles#264
shenhanc78 merged 1 commit into
google:masterfrom
yabinc:kernel-module-support

Conversation

@yabinc

@yabinc yabinc commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Support converting text format profiles (generated by simpleperf) to LLVM profiles for kernel modules (*.ko). This change does not include support for converting directly from raw perf.data files.

  • addr2line.cc: Find specific section index for .text during address lookup.
  • symbol_map.cc: Create fake segment for .text if program headers are missing.
  • Added unit test in symbol_map_test.cc.

Bug: http://b/527139483

Support converting text format profiles (generated by simpleperf) to
LLVM profiles for kernel modules (*.ko). This change does not include
support for converting directly from raw perf.data files.

- addr2line.cc: Find specific section index for .text during address lookup.
- symbol_map.cc: Create fake segment for .text if program headers are missing.
- Added unit test in symbol_map_test.cc.

Bug: http://b/527139483
@shenhanc78

Copy link
Copy Markdown
Collaborator

LGTM
Approved
Thanks.

@shenhanc78

Copy link
Copy Markdown
Collaborator

Reviewed downstream, I'll merge it after CI is finished.

@shenhanc78 shenhanc78 merged commit 0cf8bb1 into google:master Jun 24, 2026
8 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