build-prevail
Skill3.6k starsChanged 8 months agoMITView on GitHub
Build and test the PREVAIL verifier (external/ebpf-verifier) standalone. Use this skill when asked to build, test, or iterate on the PREVAIL verifier, run YAML verification tests, or work with the verifier's cmake build system.
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
- debug-crash-dumpSkill
- pr-triage-reportSkill
- verify-bpfSkill
- verify-prevailSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
When built as a submodule, prevail_ENABLE_TESTS defaults to OFF.
- Distinctive: line 79
When writing new YAML tests, use placeholder postconditions and run the test to discover actual values:
- Distinctive: line 176
When you need to build the verifier as part of the main solution (e.g., to build bpf2c which depends on it):
- Very specific: line 191
After resetting submodules, re-run .\scripts\initialize_ebpf_repo.ps1 to regenerate cmake projects
≈ “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 and Test PREVAIL Verifier
Build and test the PREVAIL eBPF verifier (external/ebpf-verifier) independently from the main eBPF for Windows solution.
When to Use
- Working on verifier changes in
external/ebpf-verifier/ - Running or debugging YAML verification tests
- Building
run_yaml.exeortests.exefor the verifier - Iterating on verifier fixes with faster feedback than full MSBuild
Prerequisites
The verifier's cmake build directory must exist. If external/ebpf-verifier/build/ is missing, run from the solution root:
.\scripts\initialize_ebpf_repo.ps1This generates cmake projects for the verifier (and other submodules). You only need to do this once, or after resetting submodules.
Building Standalone
cd external\ebpf-verifier
# Build the YAML test runner (most common during development)
cmake --build build --config Release --target run_yaml
# Build the full Catch2 test binary
cmake --build build --config Release --target tests
# Clean build (rebuild everything from scratch)
cmake --build build --config Release --clean-firstEnabling Standalone Tests
When built as a submodule, prevail_ENABLE_TESTS defaults to OFF. To enable standalone tests:
cmake -B build -Dprevail_ENABLE_TESTS=ON
cmake --build build --config ReleaseNote: The initialize_ebpf_repo.ps1 script does NOT enable tests. You need to reconfigure with -Dprevail_ENABLE_TESTS=ON if you want to build tests.exe standalone.
Running YAML Tests
YAML test files are in external/ebpf-verifier/test-data/*.yaml. Each file is a test suite with individual tests separated by ---.
cd external\ebpf-verifier
# Run all tests in a suite
.\bin\run_yaml.exe test-data\loop.yaml
# Run tests matching a substring
.\bin\run_yaml.exe test-data\loop.yaml "while loop with"
# Run a specific test by exact name
.\bin\run_yaml.exe test-data\bitop.yaml "AND with 0xFF preserves relations when value fits"Exit codes
0— all tests passed1— one or more tests failed
Discovering postconditions for new tests
When writing new YAML tests, use placeholder postconditions and run the test to discover actual values:
post:
- placeholder
messages:
- placeholderThe failure output shows "Unexpected properties" (actual values) and "Unseen properties" (your placeholders). Copy the actual values into your test.
Available test suites
| Suite | Description |
loop.yaml | Bounded loop verification (termination checking) |
bitop.yaml | Bitwise operations (AND, OR, XOR) |
movsx.yaml | Sign extension (MOVSX) operations |
sext.yaml | Sign/zero extension relational tests |
jump.yaml | Conditional jumps and branching |
packet.yaml | Packet access safety |
pointer.yaml | Pointer arithmetic and safety |
stack.yaml | Stack access verification |
call.yaml | Helper function calls |
calllocal.yaml | Local (subprogram) calls |
assign.yaml | Register assignment |
add.yaml / subtract.yaml | Arithmetic operations |
muldiv.yaml / sdivmod.yaml / udivmod.yaml | Multiplication, division, modulo |
shift.yaml | Shift operations |
atomic.yaml | Atomic operations |
full64.yaml | 64-bit comparison operations |
unsigned.yaml | Unsigned comparison operations |
unop.yaml | Unary operations (neg, swap) |
observe.yaml | Observation/assertion tests |
uninit.yaml | Uninitialized variable detection |
map.yaml | Map operations |
parse.yaml | YAML parsing tests |
callx.yaml | Indirect calls |
Running the Full Catch2 Test Binary
cd external\ebpf-verifier
# Run all tests
.\bin\tests.exe
# Run with compact reporter
.\bin\tests.exe --reporter compact
# Abort on first failure
.\bin\tests.exe --abort --reporter compact
# Run specific test sections
.\bin\tests.exe "YAML suite: test-data/loop.yaml"The tests.exe binary includes YAML tests, ELF verification tests, conformance tests, and unit tests.
YAML Test Format
---
test-case: descriptive test name
options: ["termination"] # optional; enables loop termination checking
pre: ["r1.type=number", "r1.svalue=[0, 100]", "r1.uvalue=r1.svalue"]
code:
<start>: |
r0 = 0
<loop>: |
r0 += 1
if r1 > r0 goto <loop>
<out>: |
exit
post:
- r0.type=number
- r0.svalue=[1, 100]
messages: [] # expected verifier messages; omit for no messagesKey conventions
rprefix for 64-bit registers,wprefix for 32-bitw2 = r2generates a 32-bit self-MOV (SHL 32 + RSH 32 truncation pattern)r2 &= 255generates 64-bit AND with immediatesvalue= signed value,uvalue= unsigned valuer2.svalue=r1.svaluemeans relational constraint (r2 tracks r1)r1.svalue=[0, 100]means interval [0, 100]pc[N]refers to the loop counter at instruction Npost:must list ALL expected properties — unlisted ones cause "Unexpected properties" failuremessages:field is optional (defaults to empty)
Building via MSBuild (within the main solution)
When you need to build the verifier as part of the main solution (e.g., to build bpf2c which depends on it):
# From solution root
msbuild ebpf-for-windows.sln /m /p:Configuration=Debug /p:Platform=x64 /t:"tools\bpf2c" /v:q /nologoThe MSBuild target for the verifier library is libs\user\prevail (for Debug/Release configs).
The ubpf_fuzzer\ebpfverifier target is a separate copy used only in FuzzerDebug configuration.
Submodule Notes
- The verifier lives at
external/ebpf-verifier/as a git submodule git stashin the parent repo does NOT affect the submodule working tree — stash separately in the submodule if needed- To reset to the committed pointer:
git submodule update --init --recursive(from the parent repo root) - After resetting submodules, re-run
.\scripts\initialize_ebpf_repo.ps1to regenerate cmake projects
Does 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.

