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

18 Коммитов

Автор SHA1 Сообщение Дата
Alan Jowett b138e2fb83
eBPF should use Windows Handles for eBPF objects (#110)
* Pickup changes from upstream ubpf

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* Add ebpf_handle_kernel.c to interface with Windows object manager to manage lifetimes.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2021-04-30 11:49:23 -07:00
Alan Jowett eecf006201
Reduce churn in upstream ubpf repo (#104)
* Reduce churn in upstream ubpf repo

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2021-04-29 09:43:28 -06:00
Dave Thaler 39c1819f18
Update verifier to include changes to check ctx mismatches (#106)
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-28 17:49:18 -07:00
Dave Thaler 762e25939f
Cleanup (#89)
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-25 15:25:25 -07:00
Dave Thaler 26429bc8b8
Update to latest verifier code (#69)
Also update boost to 1.75 to match what verifier uses

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-23 14:59:02 -07:00
Dave Thaler 57bef3dc03
Improve performance of boost install during windows CI pass (#44)
Pick up change to ebpf-verifier that potentially shaves a couple of minutes off the time needed for a CI pass

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-04-19 08:15:50 -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
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 82700d8608 Fix wrong submodule commit id 2021-03-05 22:05:37 -07: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 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 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
Alan Jowett 0f753dea28 Merged PR 4147072: First version of changes to comply with new ebpf contract
First version of changes to comply with new ebpf contract

Note:
We can't use crt handle -> fd mapping until ebpfcore returns *real* handles.
2021-02-23 17:34:19 +00:00
Alan Jowett 3a73e0f548 Merged PR 4114187: Update code to match coding conventions
Update code to match coding conventions
2021-02-16 17:06:14 +00:00
Alan Jowett 267668f5f6 Merged PR 4099366: Setup solution to build all files for demo
Setup solution to build all files for demo
2021-02-10 21:06:04 +00:00
Alan Jowett c3dd0ae742 Merged PR 4079802: Add src/ebpf/libs/EbpfJitterDemoLib/
Add src/ebpf/libs/EbpfJitterDemoLib/
2021-02-05 18:56:12 +00:00
Dave Thaler 1a3539874b Add ebpf-verifier as submodule
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-01-15 17:22:07 -08:00