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

Alan-Jowett / libbtf / 22149793044 / 1
95%
main: 95%

Build:
DEFAULT BRANCH: main
Ran 18 Feb 2026 05:14PM UTC
Files 11
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Feb 2026 05:11PM UTC coverage: 94.988% (+0.1%) from 94.853%
22149793044.1

push

github

web-flow
Reject BTF maps with incomplete key/value types (#189)

When parsing BTF map definitions, if a key or value field points to an
incomplete type (such as BTF_KIND_FWD), get_size() returns 0. Previously
this was silently accepted, leading to invalid map definitions.

This change:
- Detects when key/value size cannot be determined (size == 0)
- Throws an error with the map name and type name for easier diagnosis
- Makes get_type_name() public to support informative error messages
- Adds tests for both key and value forward declaration rejection

This matches libbpf behavior which rejects maps where btf__resolve_size()
fails for key/value types.

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

2293 of 2414 relevant lines covered (94.99%)

1491.18 hits per line

Source Files on job run--ubuntu-22.04- - 22149793044.1
  • Tree
  • List 11
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22149793044
  • 55c22b71 on github
  • Prev Job for on main (#22105907133.1)
  • Next Job for on main (#22158260767.1)
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