verify-bpf
Skill3.6k starsChanged 8 months agoMITView on GitHub
Build and verify eBPF programs for the ebpf-for-windows project. Use this skill when asked to compile a .c BPF source to .o, verify a .o ELF file with bpf2c, or diagnose verification failures. Covers the full clang→bpf2c pipeline.
Trending
Quiet since July.about the whole repository
Who's talking about microsoft/ebpf-for-windows
- A Hacker News story“eBPF on Windows”Hacker News · May 10, 2021 · 294 points
- sshuttle/sshuttle“Windows support 🤞”GitHub · Aug 31, 2022 · 6 reactions
- @alilleybrinker.com“Apparently there’s eBPF for Windows now github.com/microsoft/eb...”Bluesky · Jan 9, 2025 · 3 likes
- A Hacker News story“eBPF Runs on Top of Windows”Hacker News · Jul 24, 2024 · 3 points
- @breakawaybilly.bsky.social“They are working on it github.com/microsoft/eb...”Bluesky · Jun 30, 2025 · 2 likes
The biggest 5 of 42 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 42
Talked about on GitHub, Bluesky and Hacker News (42 times).
On GitHub · 32
- Aug 31, 2022Windows support 🤞 — sshuttle/sshuttle6 reactions · 10 comments
- Oct 13, 2023Upload consistently times out after hitting HTTP 503 several times — actions/upload-artifact2 reactions · 2 comments
- May 19, 2022Remove Existing Program/Rule Engine in lieu of eBPF — microsoft/xdp-for-windows2 reactions · 2 comments
- Nov 10, 2025Would implementing the fix done for the following issue to the UDFS driver fix its UNEXPECTED_KERNEL_MODE_TRAP BSODs? — Zero3K/reactos1 reaction
- Oct 14, 2025windows: fix CI issues — cilium/ebpf1 reaction
27 more on GitHub
- Jul 17, 2025pipeline failures from Github runner update to LLVM 20.1.7 — microsoft/ntosebpfext1 reaction
- Nov 19, 2024Regression due to Large output redirect refactor — catchorg/Catch21 reaction · 5 comments
- Jul 29, 2024XDP must define its eBPF structs and helpers itself — microsoft/xdp-for-windows1 reaction · 1 comment
- May 23, 2024Consume eBPF program flags feature and match Linux behavior for discontiguous frames — microsoft/xdp-for-windows1 reaction · 5 comments
- Jul 20, 2026Add Renovate configuration for dependency updates — microsoft/ebpf-extension-common0 reactions
- May 27, 2026[Enhancement] dae support Running on Windows — daeuniverse/dae0 reactions · 1 comment
- May 3, 2026New package: Microsoft.eBPFforWindows version 1.1.0 — microsoft/winget-pkgs0 reactions · 3 comments
- Apr 21, 2026Add bpf_redirect_map for AF_XDP sockets — microsoft/xdp-for-windows0 reactions
- Jan 6, 2026Add AF_XDP bpf_redirect_map support — microsoft/xdp-for-windows0 reactions · 1 comment
- Dec 15, 2025Extensions require vc runtime — microsoft/ntosebpfext0 reactions · 1 comment
- Nov 10, 2025Fix UDFS overflow queue list corruption causing BSOD 0x7F — Zero3K/reactos0 reactions · 2 comments
- Nov 4, 2025[Enhancement] Support Windows platform — daeuniverse/dae0 reactions · 3 comments
- Jun 2, 2025windows: support ringbuf / perf maps — cilium/ebpf0 reactions · 4 comments
- Apr 7, 2025Bump github.com/cilium/ebpf from 0.16.0 to 0.18.0 — ganeshkumarsv/datadog-agent0 reactions · 1 comment
- Apr 3, 2025Bump github.com/cilium/ebpf from 0.17.1 to 0.18.0 — balajiv113/trackport0 reactions
- Jan 31, 2025Windows support — tjjh89017/stunmesh-go0 reactions
- Mar 23, 2024[Enhancement Request] Support for Windows — elastic/ebpf0 reactions · 3 comments
- Jun 12, 2023Skip tests for doc-only changes — openedx-unsupported/devstack0 reactions · 1 comment
- Mar 23, 2023Windows powershell command logging — gravitational/teleport0 reactions
- Feb 28, 2023Consume fix for eBPF native driver unload race condition — microsoft/xdp-for-windows0 reactions
- Feb 28, 2023Consume const-correct eBPF definitions — microsoft/xdp-for-windows0 reactions · 1 comment
- Jun 10, 2022ELF file with symbol table containing incorrect section entry size causes llvm-objdump to crash — llvm/llvm-project0 reactions · 5 comments
- Apr 4, 2022EverParse generated code should compile /W4 /WX clean — project-everest/everparse0 reactions · 2 comments
- Apr 3, 2022possibly find cross-platform alternatives to bpftrace — lun-4/awtfdb0 reactions
- Feb 16, 2022Security vulnerability reporting process — l3af-project/governance0 reactions · 4 comments
- Jan 21, 2022Port ebpf_exporter to Windows — cloudflare/ebpf_exporter0 reactions · 1 comment
- Jun 1, 2021goebpf for windows — dropbox/goebpf0 reactions · 1 comment
On Bluesky · 7
- Jan 9, 2025Apparently there’s eBPF for Windows now github.com/microsoft/eb... — @alilleybrinker.com3 likes and reposts
- Jun 30, 2025They are working on it github.com/microsoft/eb... — @breakawaybilly.bsky.social2 likes and reposts · 1 reply
- Feb 25, 2025#eBPF is a great technology extending an OS kernel, for use cases such as DoS protection, observability, and beyond, this space should be… — @cloudnativeboy.bsky.social2 likes and reposts
- Feb 14, 2025Or maybe not? github.com/microsoft/eb... — @notwes.bsky.social2 likes and reposts
- Nov 27, 2024Fun fact, ebpf also exists (albeit in a user-mode vm) on Windows! github.com/microsoft/eb... — @adamkadaban.com2 likes and reposts · 1 reply
2 more on Bluesky
- Nov 16, 2024I just discovered that there's an eBPF implementation for Windows. github.com/microsoft/eb... — @bwoodfin.bsky.social2 likes and reposts
- Sep 17, 2025non mais ça arrivera ptet un jour github.com/microsoft/eb... — @erwanaliasr1.bsky.social1 likes and repost · 1 reply
On Hacker News · 3
- May 10, 2021eBPF on Windows294 points · 165 comments
- Jul 24, 2024eBPF Runs on Top of Windows3 points
- Apr 6, 2023eBPF for Windows2 points
In this repository7 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- adversarial-branch-reviewSkill
- build-ebpfSkill
- build-prevailSkill
- debug-crash-dumpSkill
- pr-triage-reportSkill
- verify-prevailSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Run from the solution root directory (use the clang path found above):
- Very specific: line 54
Add --verbose to get detailed verifier output (pre/post invariants at each instruction) on failure.
- Distinctive: line 83
Run clang. If it fails, fix compiler errors in the C source (standard C/clang diagnostics).
- Very specific: line 87
Run bpf2c with --sys (or --dll/--raw).
- Very specific: line 96
Re-run with
--verbose: if not already used, to get full invariant output. - Distinctive: line 98
Follow the diagnosis protocol in that document (identify error → check pre-invariant → trace root cause → recommend fix).
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build & Verify eBPF Programs (ebpf-for-windows)
Compile eBPF C source to ELF bytecode with clang, then verify (and optionally generate native code) with bpf2c. On verification failure, diagnose using the PREVAIL reference.
When to Use
- User asks to compile/build a
.ceBPF program to.o - User asks to verify a
.oELF file or check if it passes the verifier - User asks to debug or fix a verification failure from bpf2c output
- User mentions bpf2c, clang+bpf, or PREVAIL verification in the ebpf-for-windows context
Prerequisites
- clang.exe — find the first existing path (highest priority first):
packages\llvm.tools\clang.exe,"$env:ProgramFiles\LLVM\bin\clang.exe","$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath)\VC\Tools\Llvm\bin\clang.exe" - bpf2c.exe — if
x64\Debug\bpf2c.exeis missing, build it:msbuild ebpf-for-windows.sln /m /p:Configuration=Debug /p:Platform=x64 /t:tools\bpf2c
Quick Reference
1. Compile: C → ELF (.o)
Run from the solution root directory (use the clang path found above):
# Standard sample programs
& '<clang-path>' -g -target bpf -O2 -Werror `
-Iinclude -Iexternal\bpftool `
-Itests\xdp -Itests\socket `
-Itests\sample\ext\inc -Itests\include `
-c <SOURCE>.c -o <OUTPUT>.oFor undocked programs (tests\sample\undocked\*.c), also add:
-Itests\sample-Iundocked\tests\sample\ext\inc
2. Verify: ELF (.o) → native C (via bpf2c)
.\x64\Debug\bpf2c.exe --bpf <FILE>.o --sys <OUTPUT_DIR>\<name>_driver.cAdd --verbose to get detailed verifier output (pre/post invariants at each instruction)
on failure.
bpf2c Options
| Flag | Purpose |
--bpf <file> | Input ELF file containing BPF bytecode |
--sys <file> | Generate Windows kernel driver C wrapper |
--dll <file> | Generate Windows DLL C wrapper |
--raw <file> | Generate C code without platform wrapper |
--verbose | Show detailed verifier failure info (invariants) |
--type <str> | Override eBPF program type string |
--hash <alg> | Algorithm used to hash ELF file |
Workflow
Step 1: Identify the Source
Determine the .c source file and where the .o should go. Common patterns:
| Source Location | Include Flags |
tests\sample\*.c | -Iinclude -Iexternal\bpftool -Itests\xdp -Itests\socket -Itests\sample\ext\inc -Itests\include |
tests\sample\undocked\*.c | Same as above, plus -Itests\sample -Iundocked\tests\sample\ext\inc |
| User-provided file | Start with the standard sample flags; add more -I paths as needed |
Step 2: Compile with Clang
Run clang. If it fails, fix compiler errors in the C source (standard C/clang diagnostics).
Step 3: Verify with bpf2c
Run bpf2c with --sys (or --dll/--raw). Two outcomes:
- Success → bpf2c generates the output C file. Verification passed.
- Failure → bpf2c prints verifier errors. Proceed to diagnosis.
Step 4: Diagnose Failures
On verification failure:
- Re-run with
--verboseif not already used, to get full invariant output. - Read
external/ebpf-verifier/docs/llm-context.md— the authoritative PREVAIL diagnostic reference. - Follow the diagnosis protocol in that document (identify error → check pre-invariant → trace root cause → recommend fix).
Example: Full Pipeline
# Compile (undocked program — needs full include paths)
& '<clang-path>' -g -target bpf -O2 -Werror `
-Iinclude -Iexternal\bpftool `
-Itests\xdp -Itests\socket -Itests\sample\ext\inc -Itests\include `
-Itests\sample -Iundocked\tests\sample\ext\inc `
-c tests\sample\undocked\perf_event_burst.c `
-o x64\Debug\perf_event_burst.o
# Verify + generate driver
.\x64\Debug\bpf2c.exe --bpf x64\Debug\perf_event_burst.o `
--sys .\x64\Debug\perf_event_burst_km\perf_event_burst_driver.c
# If verification fails, re-run with --verbose for diagnosis
.\x64\Debug\bpf2c.exe --bpf x64\Debug\perf_event_burst.o `
--sys .\x64\Debug\perf_event_burst_km\perf_event_burst_driver.c `
--verboseDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

