ebpf-for-windows/ebpfapi
Dave Thaler 3a9958f501
Support "netsh ebpf show sections" with native drivers (#1070)
* WIP: enumerate sections in native code

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Make bpf2c emit section names

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* More of PE section enumeration

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Fix program type and map count display for native programs

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Update cmake files

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Temporarily disable some compiler warnings for the pe-parse project

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Native programs have different sizes for skeleton in debug vs release

Also add text case for section is just ".text"

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Address PR feedback

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Force inlining utility functions inside ebpf programs

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Update expected output

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* More expected output changes

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Fix ebpfapi to allow a single section of name .text

To match libbpf behavior

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Fix test

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Resolve analysis warnings

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Fix analysis warnings

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Address PR comments from Anurag

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Fix test

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2022-05-11 14:06:49 -07:00
..
CMakeLists.txt Support "netsh ebpf show sections" with native drivers (#1070) 2022-05-11 14:06:49 -07:00
Source.def Support "netsh ebpf show sections" with native drivers (#1070) 2022-05-11 14:06:49 -07:00
dllmain.cpp remove ebpf_api_initiate, ebpf_api_terminate from sources (#738) 2022-01-31 08:32:28 -08:00
ebpfapi.vcxproj Support "netsh ebpf show sections" with native drivers (#1070) 2022-05-11 14:06:49 -07:00
ebpfapi.vcxproj.filters Use CRT library to map handles to fds (#513) 2021-09-14 09:25:56 -06:00
pch.h Switch to approved license header format (#268) 2021-06-10 12:02:00 -07:00
resource.h Add version info to ebpfcore.sys, ebpfapi.dll, netebpfext.sys, and ebpfsvc.exe (#478) 2021-09-01 17:57:35 -06:00
rpc_client.cpp Remove ebpf_verify_program API (#997) 2022-04-25 10:46:22 -06:00