ebpf-for-windows/tests
Dave Thaler 872999db06
Add netsh capability to unpin programs (#539)
* Add netsh capability to unpin programs

* The netsh "set program id=<id> pinned=" (with no value) will now unpin a
  program from all paths
* The netsh "delete program <id>" will now unpin a program from all
  paths before and releasing any reference held by netsh itself
* Make the "attached=<string>" argument to netsh set programs work
  with a section name like string
* Add libbpf api bpf_obj_get()
* Add ebpf_get_next_pinned_program_name() API to enumerate pinned
  programs

Fixes #190 #373

This is required for #188 which will update the "show programs"
and also add an option to "add program" to pin all programs rather
than just the first one in a file, like bpftool has such an option.

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

* Update mock netsh behavior since PR 540 changed the underlying requirements

PreprocessCommand now correctly matches tags so you can specify a later
optional tag without having to specify earlier optional tags

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2021-09-15 18:40:44 -07:00
..
api_test Use CRT library to map handles to fds (#513) 2021-09-14 09:25:56 -06:00
client Use CRT library to map handles to fds (#513) 2021-09-14 09:25:56 -06:00
end_to_end Add netsh capability to unpin programs (#539) 2021-09-15 18:40:44 -07:00
libs Update netsh commands to use more standard libbpf apis (#527) 2021-09-14 10:59:57 -07:00
performance Use CRT library to map handles to fds (#513) 2021-09-14 09:25:56 -06:00
sample Add libpf's libbpf_prog_type_by_name() API (#534) 2021-09-15 12:08:18 -07:00
unit Add libpf's libbpf_prog_type_by_name() API (#534) 2021-09-15 12:08:18 -07:00
xdp Switch from MultiThreadedDebug to MultiThreadedDebugDll (#528) 2021-09-14 08:46:01 -06:00