Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Mocks for public APIs * PR feedback * Make the sdk client global for mocks * Update sdk client for NA mocks (#26) * Update sdk client * fix var * API interface change and UTs for TC functions (#25) * UTs for tc functions * Fix vet * Add mocks * Feedback * PR feedbacl * UTs for recovery and progs (#27) * UTs for recovery and progs * PR feedbacks * UTs for cache and kprobes (#28) * Xdp and Events UT (#29) * XDP and events update * cleanup * Third party attribution doc * readme-v1 (#30) * Update README.md (#33) * Update README.md * chore: spelling in README (#36) * Add github action for functional tests * Merge issue with func tests (#38) * test-data: Fix to use __builtin_memset() instead of memset() (#40) In BPF programs, when using functions like `memset()` and `memcpy()`, you should use LLVM built-in functions like `__builtin_memset()`. Signed-off-by: shun159 <[email protected]> * Bump golang.org/x/sys from 0.6.0 to 0.12.0 (#41) Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.6.0 to 0.12.0. - [Commits](golang/sys@v0.6.0...v0.12.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fixup poller for events race condition (#43) * Fixup poller for events race condition * Testing package go tidy * makefile: fix to remove unused option from build-bpf target (#42) * makefile: fix to remove unused option from build-bpf target Signed-off-by: shun159 <[email protected]> * makefile: refactor using pattern rule Signed-off-by: shun159 <[email protected]> --------- Signed-off-by: shun159 <[email protected]> * test-data: fix to solve compile warning for test-data (#45) * test-data: fix to solve compile warning for test-data use `void`instead of the `struct sched_process_fork_t` to solve compile warnings for resolvedata and tc.ingress ```shellsesson $ doas make test-data/recoverydata.bpf.elf clang -I../../.. -g -O2 -Wall -fpie -target bpf -DCORE -D__BPF_TRACING__ -D__TARGET_ARCH_x86 -c test-data/recoverydata.bpf.c -o test-data/recoverydata.bpf.elf test-data/recoverydata.bpf.c:101:31: warning: declaration of 'struct sched_process_fork_t' will not be visible outside of this function [-Wvisibility] int sched_process_fork(struct sched_process_fork_t *ctx) { ^ 1 warning generated. ``` Signed-off-by: shun159 <[email protected]> * makefile: Refactor the vmlinux and unit-test targets 1. Check the existence of the /sys/kernel/btf/vmlinux file before generating the header file using bpftool. 2. Improve the idempotency of the vmlinux target. 3. Add the `LOGFILE_PATH` variable to allow specifying a different path for the `AWS_EBPF_SDK_LOG_FILE`. Signed-off-by: shun159 <[email protected]> --------- Signed-off-by: shun159 <[email protected]> * kprobe: Add defer statements for resource cleanup in KprobeAttach()/KretprobeAttach (#46) Ensure that file handle is properly closed using `defer` statements. Signed-off-by: shun159 <[email protected]> * Add v6 test and inc log level (#53) * Fix verifier log buffer size (#54) * Use defer close --------- Signed-off-by: shun159 <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Apurup Chevuru <[email protected]> Co-authored-by: Alex Jones <[email protected]> Co-authored-by: Davanum Srinivas <[email protected]> Co-authored-by: Eishun Kondoh <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information