* Improve documentation for running the port_quota demo.
* Rephrased messaging and made the case where manual intervention is needed clearer.
---------
Co-authored-by: Ben Lewis (REDMOND) <Ben.Lewis@microsoft.com>
Changes to match latest draft-ietf-bpf-isa
Also correct legacy packet instruction lines to show that PREVAIL
does support them. https://github.com/vbpf/ebpf-verifier/pull/577
will update the verifier so make such support a platform specific
property but that hasn't been merged yet so this PR reflects
current state.
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Remove movsx imm instructions
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Switch most bpf2c uses to use verifier defines not uBPF defines
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Add bpf2c support for ja32 instruction
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Add bpf2c support for swap* instructions
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Add bpf support for movsx instructions
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Update CI/CD command
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
---------
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Add sdiv instruction support to bpf2c
Manually tested with latest bpf_conformance test
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Add signed modulo instructions
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Add sdiv conformance tests to isa-support table
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Fix ja32 documentation
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
---------
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
* Set required_irql in sockops and sockaddr program information
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Update docs/eBpfExtensions.md
Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
---------
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
* Update Release process to get the Debug version
* updated doc
* Update docs/ReleaseProcess.md
Co-authored-by: Gianni Trevisiol <gtrevi@users.noreply.github.com>
---------
Co-authored-by: Gianni Trevisiol <gtrevi@users.noreply.github.com>
* remove store km lib and code
* fix
* more cleanup
* Apply suggestions from code review
Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
---------
Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
* replace XDP guids with XDP_TEST guids
* updated missde instance
* update bpf2c
* leave xdp_hook as is
* remove extra files
* update with new XDP_TEST guid, update other tests to use sample_ext
* update some tests, update test_helper
* update fuzzer
* temporarily remove bpftool tests
* update execution context test
* replace XDP guids with XDP_TEST guids
* updated missde instance
* update bpf2c
* leave xdp_hook as is
* remove extra files
* update with new XDP_TEST guid, update other tests to use sample_ext
* update some tests, update test_helper
* update fuzzer
* temporarily remove bpftool tests
* update execution context test
* build failures
* update sample ext with context_allocate and destroy
* update vm script to use xdp_test
* switch api tests to use sample program
* rename to xdp_Test
* update sample ext
* update incorrect SAL, update netsh tests
* update sample, update tests to use sample where applicable
* update tests
* fix up tests
* fix libbpf tets
* revert unnecessary changes
* remove extra prints
* add back in bpftool tests
* update to use xdp instead of xdp_test for bpftool test
* update atomic_instructions_others.o
* extra debug logs
* updated expected, update bpftool tests
* correct bpftool tests
* more debug logs
* add reg debug
* clear program info
* Attempt fix of buffer overrun
* remove debug logs, minor cleanup, set XDP guids back to their original names
* update docs with xdp_test
* fix guid usage
* CR: remove program, update comments, fix commented out tests, update bpf_program__attach_xdp
* revert changes in libbpf, as they need to use the actual XDP guids
* update comment
* update some XDP tests to use sample ext, comment out some expected failing tests
* update bpftool tests
* fix up bpf prog test run expected output, move to #if instead of comments
* fix up return code issue
* fix bpftool testes
* add some failed xdp tests, set some params to null for sample tests
* update comment
* tmp commit - move to xdp mock
* update unit tests to use mock XDP where possible
* made some samples back to XDP type
* netebpfext unit tests should use xdp_test
* CR
* Add new server 2022 and 2019 runners.
* rename runners and VMs
* Update old runners
* update perf runner label
---------
Co-authored-by: Igor Klemenski <igklemen@microsoft.com>
* Remove barriers in enter and exit
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* PR feedback
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* PR feedback
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Apply suggestions from code review
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* PR feedback
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Apply suggestions from code review
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* PR feedback
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
---------
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* Run bpf_performance_runner on a scheduled run.
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Capture CPU profile
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Fix mandatory parameter
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Pass list of options for test mode
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Capture CPU profile
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Handle empty options parameter
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Switch to v0.0.2 of perf test and gather per test ETL
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Switch perf to scheduled run
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* PR feedback
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* PR feedback
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
---------
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Other projects can now consume ebpf-for-windows in binary form,
using either nuget or MSI install. We no longer need to build
ebpf-for-windows both ways, so removing the cmake build to free
up build resources and reduce the development cost of maintaining
both msbuild and cmake builds.
Fixes#2743
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* first try runners
* optimize json schema
* remove refs to vm_list.json
* comment out most of pipeline for final testing in prod
* try fixing appverifier double close on handle
* add native-only vcxproj configs for tcp_udp_listener.exe
* add missing vcxproj parts
* fix active config for tcp_udp_listener in ebpf .sln
* uncomment CI after successful run on all runners
* do staged migration
* fix up labels
---------
Co-authored-by: Igor Klemenski <igklemen@microsoft.com>
* make xdp tests run on 2 duonic pairs
* makre 2-machine tests ready for duonic
* update expected bpf2c files
* rephrase xdp_test VM name comments
* update doc
---------
Co-authored-by: Igor Klemenski <igklemen@microsoft.com>
* Add map_in_map_legacy.c
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Make bpf2c maps parser match verifier's maps parser
The verifier will parse "maps/*" sections, and is able to deal with
maps sections with various record sizes. This PR updates bpf2c to
use the same algorithm. In the future it would be good to refactor
the verifier so the same code can be used.
Fixes#900
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Make tests pass
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* PR feedback
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Rename map_in_map_* samples
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix BTF ID resolution
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* PR feedback
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Cleanup
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Bug fixes
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Add doc fix
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Update verifier
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Updates for libbtf
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Use libbtf
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix sanitize build by using updated libbtf
Temporarily point to fork until https://github.com/vbpf/ebpf-verifier/pull/515
is merged, so we can verify the fix in CI/CD.
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Update ebpf-verifier
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* PR feedback
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
---------
Signed-off-by: Dave Thaler <dthaler@microsoft.com>