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 <dreamdiagnosis@gmail.com> * 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] <support@github.com> 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 <dreamdiagnosis@gmail.com> * makefile: refactor using pattern rule Signed-off-by: shun159 <dreamdiagnosis@gmail.com> --------- Signed-off-by: shun159 <dreamdiagnosis@gmail.com> * 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 <dreamdiagnosis@gmail.com> * 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 <dreamdiagnosis@gmail.com> --------- Signed-off-by: shun159 <dreamdiagnosis@gmail.com> * 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 <dreamdiagnosis@gmail.com> --------- Signed-off-by: shun159 <dreamdiagnosis@gmail.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Apurup Chevuru <60630804+achevuru@users.noreply.github.com> Co-authored-by: Alex Jones <alex@k8sgpt.ai> Co-authored-by: Davanum Srinivas <davanum@gmail.com> Co-authored-by: Eishun Kondoh <dreamdiagnosis@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information