lowRISC / lowRISC/opentitan

[coverage] Investigate invalid profile data

Open
#18,746 3 comments 0 reactions 1 assignee Claimed by @alphan View on GitHub
Component:Software Component:Tooling Earlgrey-PROD Triaged Priority:P4
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

While working on #18745, I found the root cause for the malformed profile data after migrating to LLVM 16.0.2: it was a call to `__llvm_profile_register_function()` with a bad pointer. Interestingly this pointer contains the address of the `__llvm_profile_runtime` variable that we define to be able to measure coverage on target. It's not clear if this is a compiler bug or if we need to react to another change that occurred some time between LLVM 13 and 16.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.