Skip to content

feat: add CO-RE kernel validation at startup#54

Merged
maheshbhatiya73 merged 1 commit into
mainfrom
dev
Apr 20, 2026
Merged

feat: add CO-RE kernel validation at startup#54
maheshbhatiya73 merged 1 commit into
mainfrom
dev

Conversation

@maheshbhatiya73
Copy link
Copy Markdown
Member

Check running kernel version >= 5.2.0 and BTF availability before any compilation. Exit with diagnostics if CO-RE is unsupported.

  • Add kernel_check module
  • Parse uname -r for runtime kernel version
  • Validate /sys/kernel/btf/vmlinux exists
  • Exit code 2 with actionable error on failure

Check running kernel version >= 5.2.0 and BTF availability before
any compilation. Exit with diagnostics if CO-RE is unsupported.

- Add kernel_check module
- Parse uname -r for runtime kernel version
- Validate /sys/kernel/btf/vmlinux exists
- Exit code 2 with actionable error on failure
@maheshbhatiya73 maheshbhatiya73 merged commit 4a74588 into main Apr 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant