ebpf-for-windows
Copilot instructions3.6k starsChanged 8 months agoMITView on GitHub
This project brings eBPF (extended Berkeley Packet Filter) to Windows, enabling programmable OS kernel extensions for use cases like network filtering and observability. See docs/GettingStarted.md for prerequisites, build options, and detailed setup. See docs/AutomatedTests.md for test categories and descriptions.
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.
- adversarial-branch-reviewSkill
- build-ebpfSkill
- build-prevailSkill
- debug-crash-dumpSkill
- pr-triage-reportSkill
- verify-bpfSkill
- verify-prevailSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 82
Types: Use stdint.h fixed-width types (uint32_t, not int)
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
eBPF for Windows - Copilot Instructions
This project brings eBPF (extended Berkeley Packet Filter) to Windows, enabling programmable OS kernel extensions for use cases like network filtering and observability.
Quick Reference
| Task | Command |
| Build | msbuild /m /p:Configuration=Debug /p:Platform=x64 ebpf-for-windows.sln |
| Build (native only) | msbuild /m /p:Configuration=NativeOnlyDebug /p:Platform=x64 ebpf-for-windows.sln |
| Format code | ./scripts/format-code --staged |
| Run unit tests | unit_tests.exe (from x64\Debug) |
| Run single test | unit_tests.exe "test name" |
| List tests | unit_tests.exe -l |
See docs/GettingStarted.md for prerequisites, build options, and detailed setup. See docs/AutomatedTests.md for test categories and descriptions.
Architecture Overview
┌─────────────────────────────────────────────────────────────────────┐
│ User Space │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────────────────┐ │
│ │ bpftool │ │ netsh │ │ Apps │ │ ebpfsvc.exe │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │ (JIT/verification) │ │
│ └─────────────┴─────────────┘ └──────────┬───────────┘ │
│ │ │ │
│ ┌───────▼───────┐ │ │
│ │ ebpfapi.dll │◄───────────────────────┘ │
│ │ (libbpf API) │ │
└──────────────┴───────┬───────┴──────────────────────────────────────┘
│ IOCTLs
┌──────────────────────▼──────────────────────────────────────────────┐
│ Kernel Space │
│ ┌──────────────────────────────────────────────────────────────┐ │
│ │ ebpfcore.sys │ │
│ │ (eBPF execution context) │ │
│ │ • Program loading/unloading • Map management │ │
│ │ • Interpreter (debug only) • Native driver execution │ │
│ └──────────────────────────────────────────────────────────────┘ │
│ │ NMR (Network Module Registrar) │
│ ┌───────────────────────────▼──────────────────────────────────┐ │
│ │ Extension Drivers (Hook Providers) │ │
│ │ ┌─────────────┐ ┌─────────────┐ ┌───────────────────────┐ │ │
│ │ │netebpfext.sys│ │sample_ext.sys│ │ (custom extensions) │ │ │
│ │ │ (WFP hooks) │ │ (testing) │ │ │ │ │
│ │ └─────────────┘ └─────────────┘ └───────────────────────┘ │ │
│ └──────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘Key Components
| Component | Location | Purpose |
| ebpfcore.sys | libs/execution_context/, ebpfcore/ | Kernel execution context for eBPF programs |
| ebpfapi.dll | libs/api/, ebpfapi/ | User-mode library exposing libbpf-compatible APIs |
| ebpfsvc.exe | libs/service/, ebpfsvc/ | Service handling JIT compilation and verification |
| netebpfext.sys | netebpfext/ | Network extension providing WFP hooks |
| bpf2c | tools/bpf2c/ | Converts eBPF bytecode to C for native compilation |
External Dependencies (in external/)
- ebpf-verifier (PREVAIL): Validates eBPF program safety
- ubpf: JIT compiler and interpreter
- usersim: User-mode simulation of kernel APIs for testing
- Catch2: Test framework
Program Execution Modes
- Native (preferred): eBPF → bpf2c → C → Windows driver (.sys)
- JIT: eBPF bytecode → native code at runtime via ubpf
- Interpreter: Direct bytecode execution (debug builds only)
Code Conventions
See docs/DevelopmentGuide.md for full details. Key points:
- Naming:
lower_snake_casefor functions/variables,UPPER_SNAKE_CASEfor macros,ebpf_prefix for global names - Structs:
typedef struct _ebpf_widget { ... } ebpf_widget_t; - Types: Use
stdint.hfixed-width types (uint32_t, notint) - Headers:
#pragma once, local includes before system includes, alphabetized - Formatting: clang-format 18.1.8, 120-char limit, braces required on single-line blocks
- License header (required):
// Copyright (c) eBPF for Windows contributors // SPDX-License-Identifier: MIT
Extension Development
eBPF extensions are kernel drivers providing hooks/helpers via NMR. See docs/eBpfExtensions.md.
Crash Dump Debugging
See docs/CrashDumpDebugging.md for instructions on downloading and analyzing crash dumps from CI failures. Use the debug-crash-dump skill for agent-assisted dump analysis.
Tracing
See "Using tracing" section in docs/GettingStarted.md. Quick reference:
tracelog -start MyTrace -guid ebpf-printk.guid -rt
tracefmt -rt MyTrace -displayonly -jsonMeta 0Does 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.

