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

386 Коммитов

Автор SHA1 Сообщение Дата
Dave Thaler 5b7b947ac0
Add FAQ to README file (#36)
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-16 17:23:21 -07:00
Dave Thaler d2faba3e25
Build Debug configuration (#29)
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-16 12:52:47 -07:00
Alan Jowett 1c019afc9c
Change interface to maps to use opaque type and simplify interface. (#23)
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2021-04-16 12:59:38 -06:00
Dave Thaler 8246f41b8c
Fix references to ebpfverifier project (#25)
The GUID referenced didn't match the project's GUID in the ebpf-demo.sln file

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-16 11:38:56 -07:00
Dave Thaler 0f9c96e17f
Fix instruction count computation (#26)
The instruction count is shown twice, with both numbers incorrect.
This PR fixes the first one.
The second one comes from the stats section which is off by one since it
counts "entry:", which is also why the Prevail "check" tool skips
printing it.   I'm following up separately to see if that one can just be removed.

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-16 08:58:37 -07:00
Dave Thaler 648b0fe963
Convert tutorial to use netsh commands (#16)
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-15 18:36:36 -07:00
Alan Jowett 7d791e5643
Refactor maps into static lib to permit easier testing or replacement. (#15)
Resolves: #14

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2021-04-15 17:15:00 -06:00
Alan Jowett b9eb5a080b
Add -g to build of eBPF programs to run tests with debug inforormation. (#13)
Resolves: #12

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2021-04-15 14:57:31 -07:00
Alan Jowett 81358ecca3
Create static libraries containing the Platform abstraction layer for user mode and kernel (#10)
Resolves #9

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2021-04-15 13:41:57 -06:00
Alan Jowett e17f511a42
Add unit test to CI/CD workflow. (#8)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2021-04-15 13:25:12 -06:00
Dave Thaler f4c244a9a0
Run github workflow on all pull requests (#11)
Not just ones from the original repo, but also PRs from forks

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-15 12:09:49 -07:00
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