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

Alan-Jowett / libbtf
95%

Build:
DEFAULT BRANCH: main
Repo Added 14 Jun 2023 04:02PM UTC
Files 11
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • copilot/fix-149
  • copilot/fix-btf-data-cycle-issues
  • copilot/support-big-endian-bpf
  • dependabot/github_actions/actions-09d47ea41e
  • dependabot/github_actions/actions-0ba81a7022
  • dependabot/github_actions/actions-0bcac4bc46
  • dependabot/github_actions/actions-0c6b652348
  • dependabot/github_actions/actions-0da70435a0
  • dependabot/github_actions/actions-12d2e1d0cf
  • dependabot/github_actions/actions-1509149478
  • dependabot/github_actions/actions-156f88ae03
  • dependabot/github_actions/actions-16239e05d6
  • dependabot/github_actions/actions-163fe094ea
  • dependabot/github_actions/actions-1ccd37d650
  • dependabot/github_actions/actions-24635c8ff6
  • dependabot/github_actions/actions-2ffb7989ac
  • dependabot/github_actions/actions-317d95441b
  • dependabot/github_actions/actions-3505e29795
  • dependabot/github_actions/actions-379726463b
  • dependabot/github_actions/actions-4016cb32aa
  • dependabot/github_actions/actions-421a1b1df5
  • dependabot/github_actions/actions-4729627fe5
  • dependabot/github_actions/actions-498a780ce3
  • dependabot/github_actions/actions-522a0045d5
  • dependabot/github_actions/actions-53e580a489
  • dependabot/github_actions/actions-5c0850a894
  • dependabot/github_actions/actions-5fe515b291
  • dependabot/github_actions/actions-62c22b5ba5
  • dependabot/github_actions/actions-6e1d0279d1
  • dependabot/github_actions/actions-6e57292089
  • dependabot/github_actions/actions-70ed0b41af
  • dependabot/github_actions/actions-7195a41eef
  • dependabot/github_actions/actions-7804652b1e
  • dependabot/github_actions/actions-7c7f47a2e0
  • dependabot/github_actions/actions-861261b200
  • dependabot/github_actions/actions-8e8a7fd0ce
  • dependabot/github_actions/actions-907fe56bd6
  • dependabot/github_actions/actions-9b3e46d059
  • dependabot/github_actions/actions-aa2a37f0ca
  • dependabot/github_actions/actions-aaae3d5b01
  • dependabot/github_actions/actions-b97984f85d
  • dependabot/github_actions/actions-c4c72c7f75
  • dependabot/github_actions/actions-c9c37bcfed
  • dependabot/github_actions/actions-ced721f930
  • dependabot/github_actions/actions-d0cc373f4d
  • dependabot/github_actions/actions-d1a25f988a
  • dependabot/github_actions/actions-d230bc030b
  • dependabot/github_actions/actions-d4e08d60db
  • dependabot/github_actions/actions-da0f14823a
  • dependabot/github_actions/actions-da79ef3b5c
  • dependabot/github_actions/actions-dab0c35f67
  • dependabot/github_actions/actions-dca91fdd7e
  • dependabot/github_actions/actions-dd55805e99
  • dependabot/github_actions/actions-e1e364578d
  • dependabot/github_actions/actions-e569d89199
  • dependabot/github_actions/actions-f0228431b0
  • dependabot/github_actions/actions-f287ed9341
  • dependabot/github_actions/actions-f447627fa3
  • dependabot/github_actions/actions-f7e9886b4e
  • dependabot/github_actions/actions-fa2760fd5e
  • dependabot/github_actions/actions-fd64dd94eb
  • empty-data-section-check
  • fix/reject-incomplete-btf-map-types
  • fix_macos_build
  • issue144
  • issue171
  • main
  • parse_global_variables
  • patch-1

18 Feb 2026 05:11PM UTC coverage: 95.029% (+0.2%) from 94.853%
23024559265

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>

65 of 65 new or added lines in 2 files covered. (100.0%)

2294 of 2414 relevant lines covered (95.03%)

1465.72 hits per line

Relevant lines Covered
Build:
Build:
2414 RELEVANT LINES 2294 COVERED LINES
1465.72 HITS PER LINE
Source Files on main
  • Tree
  • List 11
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
23024559265 main 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 ... push 12 Mar 2026 09:26PM UTC web-flow github
95.03
22975101512 main 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 ... push 11 Mar 2026 09:25PM UTC web-flow github
95.03
22924841277 main 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 ... push 10 Mar 2026 09:25PM UTC web-flow github
95.03
22875416837 main 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 ... push 09 Mar 2026 09:27PM UTC web-flow github
95.03
22830010968 main 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 ... push 08 Mar 2026 09:18PM UTC web-flow github
94.99
22807334312 main 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 ... push 07 Mar 2026 09:17PM UTC web-flow github
94.99
22782406502 main 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 ... push 06 Mar 2026 09:23PM UTC web-flow github
94.99
22737415389 main 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 ... push 05 Mar 2026 09:28PM UTC web-flow github
94.99
22689987950 main 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 ... push 04 Mar 2026 09:29PM UTC web-flow github
94.99
22643386445 main 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 ... push 03 Mar 2026 09:31PM UTC web-flow github
94.99
See All Builds (1314)
  • Repo on GitHub
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