Commit Graph

4 Commits (9ae2742e39499604eb4a1d4bf053993bf8c73689)

Author SHA1 Message Date
Dave Tucker 9ae2742e39 chore(aya-ebpf)!: Deprecate aya-ebpf-cty
I don't recall why we used aya-ebpf-cty (a fork of the cty crate).
I assume it's because the ffi types in libcore weren't stablized when
the project first started.

Either way, I've replaced aya-ebpf-cty with core::ffi types and
the tests appear to pass still, which is reassuring.

This is a breaking change since the re-export of aya-ebpf-cty as
aya-ebpf::cty has also been removed. Migration is as simple as
replacing import with core::ffi.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
6 months ago
Dave Tucker 1ccac3c135 feat(ebpf): Implement FromPtRegs for mips
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
6 months ago
Billy McFall b513af12e8 aya: add archs powerpc64 and s390x to aya
bpfman, a project using aya, has a requirement to support powerpc64 and
s390x architectures. Adding these two architectures to aya.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
11 months ago
tyrone-wu 2d38b23b99 aya-ebpf/programs: moved ret from ProbeContext into new RetProbeContext
Created retprobe.rs to hold RetProbeContext and moved the ret from
ProbeContext in probe.rs into RetProbeContext. Now, only kprobe (which
uses ProbeContext) can access args, and kretprobe (which uses
RetProbeContext) can access ret.

Fixes: #700
1 year ago