• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vbpf / prevail / 22438876639

26 Feb 2026 10:51AM UTC coverage: 88.981% (+0.05%) from 88.93%
22438876639

push

github

elazarg
Add .ksyms kfunc relocation support

Rewrite .ksyms kfunc extern calls to call_btf during ELF relocation via platform callback resolution and preserve module offset in IR marshal/unmarshal.

Changes:
- Add platform callback (resolve_ksym_btf_id) for symbol-to-{btf_id,module} resolution
- Pre-parse .BTF .ksyms function symbols and cache resolution in ELF loader
- Rewrite CALL src=1 externs to CALL src=2 with imm=btf_id and offset=module
- Preserve module offset in call_btf IR/marshal/unmarshal/printing
- Add negative-module validation and offset==0 precondition in rewrite
- Add focused tests for loader, marshal, and platform behavior

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

132 of 157 new or added lines in 12 files covered. (84.08%)

1 existing line in 1 file now uncovered.

13300 of 14947 relevant lines covered (88.98%)

4609164.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.52
/src/ir/parse.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc