• 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: main
CHANGE BRANCH
x
Reset
  • main
  • 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-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
  • parse_global_variables
  • patch-1

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

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%)

2293 of 2414 relevant lines covered (94.99%)

1491.18 hits per line

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

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22264463121 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 21 Feb 2026 09:16PM UTC web-flow github
94.99
22241452592 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 20 Feb 2026 09:18PM UTC web-flow github
95.03
22200640262 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 19 Feb 2026 09:26PM UTC web-flow github
94.99
22158260767 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 18 Feb 2026 09:29PM UTC web-flow github
95.03
22149793044 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 18 Feb 2026 05:13PM UTC web-flow github
94.99
22116277379 main Bump github/codeql-action from 4.32.2 to 4.32.3 in the actions group (#187) Bumps the actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action). Updates `github/codeql-action` from 4.32.2 to 4.32.3 - [Release ... push 17 Feb 2026 09:31PM UTC web-flow github
94.85
22105907133 main Bump github/codeql-action from 4.32.2 to 4.32.3 in the actions group (#187) Bumps the actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action). Updates `github/codeql-action` from 4.32.2 to 4.32.3 - [Release ... push 17 Feb 2026 04:34PM UTC web-flow github
94.85
22077797995 main Bump the actions group across 1 directory with 2 updates (#186) Bumps the actions group with 2 updates in the / directory: [step-security/harden-runner](https://github.com/step-security/harden-runner) and [github/codeql-action](https://github.com... push 16 Feb 2026 09:23PM UTC web-flow github
94.85
22043189853 main Bump the actions group across 1 directory with 2 updates (#186) Bumps the actions group with 2 updates in the / directory: [step-security/harden-runner](https://github.com/step-security/harden-runner) and [github/codeql-action](https://github.com... push 15 Feb 2026 09:17PM UTC web-flow github
94.9
22024368069 main Bump the actions group across 1 directory with 2 updates (#186) Bumps the actions group with 2 updates in the / directory: [step-security/harden-runner](https://github.com/step-security/harden-runner) and [github/codeql-action](https://github.com... push 14 Feb 2026 09:17PM UTC web-flow github
94.85
See All Builds (1296)
  • 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