Граф коммитов

125 Коммитов

Автор SHA1 Сообщение Дата
Dave Thaler 089b6de6a7
Update README with latest changes (#7)
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-15 11:41:16 -07:00
Dave Thaler d2c9ba6c71 Add maps discussion to tutorial
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-14 11:47:16 -07:00
Dave Thaler bf8fd86429 Convert tutorial doc to markdown
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-14 11:47:16 -07:00
Dave Thaler 48fa5458af
Add more contributing guidelines (#4)
Using the MSQUIC project as the example to copy from.
https://github.com/microsoft/msquic/blob/main/.github/CONTRIBUTING.md

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-14 11:45:32 -07:00
Dave Thaler 9174654d26
Add build task to github workflows (#2)
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-14 11:03:01 -07:00
Dave Thaler a0304a0172 Add github files
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-13 15:48:48 -07:00
Alan Jowett b35a157c6b Merged PR 4256572: Update ebpf to use minimally changed ubpf
Update ebpf to use minimally changed ubpf

1) Revert change in ubpf to support dynamic map and helper resolution -> pre-resolve all maps and helpers.
2) Remove jitter code from kernel ubpf lib
2021-03-17 22:10:24 +00:00
Alan Jowett b431246e5d Merged PR 4249706: Pull latest ebpf verifier and fix build break
Pull latest ebpf verifier and fix build break
2021-03-16 19:33:56 +00:00
Alan Jowett aa04455d1f Merged PR 4246780: Switch to ebpf / prevail master branch
Switch to ebpf / prevail master branch
2021-03-16 01:39:35 +00:00
Alan Jowett 32eba8af72 Merged PR 4245043: Add license text to all .vcxproj files
Add license text to all .vcxproj files
2021-03-15 19:41:45 +00:00
Alan Jowett a3df5a64d5 Merged PR 4244774: Start of CI/CD pipeline
Start of CI/CD pipeline

Build static libs for user mode.
2021-03-15 19:00:32 +00:00
Alan Jowett 5af17b80ad Merged PR 4244102: Tweak for demo
Tweak for demo
2021-03-15 18:46:56 +00:00
Alan Jowett 514b942372 Enable CFG to unblock build 2021-03-15 12:32:48 -06:00
Alan Jowett 1f1b465096 Attemp to restore nuget 2021-03-15 12:22:03 -06:00
Alan Jowett 645a8c656d Switch to single feed 2021-03-15 11:47:39 -06:00
Alan Jowett 029e4cf0ab Remove project that depends on clang 2021-03-15 11:04:09 -06:00
Alan Jowett 475f7e4f01 Remove projects that don't build yet 2021-03-15 10:56:42 -06:00
Alan Jowett cf9f73aada Fix pipeline definition 2021-03-15 09:51:01 -06:00
Alan Jowett f12d139a50 Fix multi-feed nuget issue 2021-03-15 09:45:25 -06:00
Alan Jowett f9d93cffd9 Split user and kernel build sequences 2021-03-15 09:35:44 -06:00
Alan Jowett 39bdb252da Merged PR 4236890: Add option to dump loaded programs
Add option to dump loaded programs
2021-03-15 15:34:33 +00:00
Alan Jowett ff4aaa51e7 Merged PR 4228032: Fix case where enumerating while key is deleted
Fix case where enumerating while key is deleted
2021-03-11 18:00:58 +00:00
Alan Jowett 366e41afdd Merged PR 4226082: Fix bugs so that portquota demo works
Fix bugs so that portquota demo works
2021-03-10 21:02:37 +00:00
Alan Jowett 09bfd2063d Merged PR 4220809: First drop of port_quota demo
First drop of port_quota demo
2021-03-10 02:38:31 +00:00
Dave Thaler 6945db64e0 Fix build by restoring header ordering dependencies and turning off sort
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-09 16:25:24 -08:00
Dave Thaler 13206372ea Normalize line endings for VS files
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-09 15:15:36 -08:00
Dave Thaler 8e7644d459 Merged PR 4208679: Enforce license headers and add code formatting script
This PR cherry picks the scripts already in the master branch into the demo branch
And it turns on the gate by creating a project that installs the git pre-commit hook, which gate requires any changed files to have the script run on them before the commit will succeed (and if you try, git will just tell you the command to run to automatically fix up your stuff).  A separate PR will show the results of running the script on all files that already exist, so you can see what the style looks like.

This change is so we can get code ready to move to github without it looking bad.

Also in this PR is a fix to ebpfapi.vcxproj that caused build errors
2021-03-09 22:56:40 +00:00
Dave Thaler 0af49d8d15 Merged PR 4208690: Automated code formatting pass
All changes in this PR were automatically generated by a code formatting script that is in the master branch.
The style is configurable so if there's something you don't like we can discuss, but today there is not a consistent style across the repo, and often not even consistent within a file.

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-09 22:56:31 +00:00
Dave Thaler 6b3c464c38 Automated code formatting pass
All changes in this PR were automatically generated by a code formatting
script that is in the master branch.
The style is configurable so if there's something you don't like we can
discuss, but today there is not a consistent style across the repo, and
often not even consistent within a file.

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-09 14:54:03 -08:00
Alan Jowett b2312a4790 Merged PR 4216677: Add test code for bind hook
Add test code for bind hook
2021-03-09 17:59:43 +00:00
Alan Jowett f974145fbc Merged PR 4209465: Add doxygen documentation to ebpfapi.h and make new code /w4 /wx clean
Add doxygen documentation to ebpfapi.h and make new code /w4 /wx clean
2021-03-08 16:37:39 +00:00
Alan Jowett 82bbe5a07f Merged PR 4207396: Check for hvci at startup and block jit if enabled
Check for hvci at startup and block jit if enabled
2021-03-06 18:45:30 +00:00
Dave Thaler 09637441c5 Add setup_build project to install git hook
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-05 21:46:30 -08:00
Dave Thaler 2557f029b9 Check code formatting and licenses when committing
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-05 21:15:17 -08:00
Alan Jowett 82700d8608 Fix wrong submodule commit id 2021-03-05 22:05:37 -07:00
Alan Jowett 125c183bee Merged PR 4205675: Add option to execute eBPF program via JIT or interpreter
Add option to execute eBPF program via JIT or interpreter
2021-03-05 22:47:18 +00:00
Alan Jowett 741d04401d Merged PR 4205230: Move all parsing and verification to ebpfapi from netsh helper
Move all parsing and verification to ebpfapi from netsh helper
2021-03-05 18:49:25 +00:00
Alan Jowett d9f75432fb Merged PR 4202906: Refactor execution context and ubpf to allow running in either kernel or user...
Refactor execution context and ubpf to allow running in either kernel or user mode.
Remove dead code from demo branch.
Create e2e test for droppack.
2021-03-05 17:05:09 +00:00
Dave Thaler 5766cfb6f8 Merged PR 4189708: Use the Prevail master branch
Moves Windows platform files into the internal repo.

Also adds ebpf_windows.h file to centralize defines that were previously duplicated in at least three places in this repo, and one ,more previously in the windows branch of prevail, now all unified.
2021-03-03 16:51:26 +00:00
Dave Thaler 6b9fb4b103 Use the Prevail master branch
Moves Windows platform files into the internal repo.

Also adds ebpf_windows.h file to centralize defines that were previously
duplicated in at least three places.

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-02 20:54:15 -08:00
Dave Thaler b87da5d4ab Merged PR 4175621: Update netsh program commands
Update to use improved error messages like the other netsh commands.

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-03 04:39:52 +00:00
Dave Thaler 344505bbb1 Update netsh program commands
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-03-02 20:30:40 -08:00
Alan Jowett 9a475b6170 Merged PR 4181632: Move hook code out of ebpfcore.c
Move hook code out of ebpf_core.c

Experiment with making ebpf_l2_hook.c act more like an extension.
2021-03-02 16:28:41 +00:00
Alan Jowett 8892a60a7f Merged PR 4175508: Add API to query and enumerate maps
Add API to query and enumerate maps
2021-03-01 16:10:45 +00:00
Dave Thaler 5acceba2af Merged PR 4174748: Use latest verifier fixes and error messages
Also default to using the first section instead of .text as being easier to use
2021-02-27 00:38:02 +00:00
Dave Thaler e70a6a0197 Update to use latest verifier fixes and error messages
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-02-26 15:36:50 -08:00
Alan Jowett b69c3ad5c9 Merged PR 4169277: Add support for hook on bind/unbind
Add support for hook on bind/unbind
2021-02-26 17:38:11 +00:00
Alan Jowett 6092391a16 Merged PR 4154879: Add support for hash maps in for bind demo
Add support for hash maps in for bind demo
2021-02-24 20:27:14 +00:00
Alan Jowett eefdd638c6 Fix bug in xdp context 2021-02-24 13:04:24 -07:00
Dave Thaler da8ce260c1 Update verifier to have better error messages
This pulls in the latest from the windows prevail branch

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-02-23 17:35:04 -08:00