ebpf-for-windows/tools/netsh
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
dllmain.c Improve netsh helper initialization error message output (#788) 2022-03-01 12:51:41 -08:00
ebpfnetsh.rc Support "netsh ebpf show sections" with native drivers (#1070) 2022-05-11 14:06:49 -07:00
ebpfnetsh.sln Update directory structure (#134) 2021-05-05 14:10:28 -06:00
ebpfnetsh.vcxproj Centralize compiler options (#823) 2022-03-29 10:41:09 -06:00
ebpfnetsh.vcxproj.filters Use CRT library to map handles to fds (#513) 2021-09-14 09:25:56 -06:00
packages.config Update directory structure (#134) 2021-05-05 14:10:28 -06:00
resource.h Add option to pin all programs added, and show links and maps (#553) 2021-09-17 18:52:47 -07:00