Missing support for BPF_PROG_RUN
BPF_PROG_RUN is quite useful for "unit testing" (integration testing if you're being pedantic). It looks like Program is missing support for it.
Makes sense to me. Please feel free to open a pull request if you have something working.
Each prog type has a different context. I'm wondering if we should provide definitions for all of them or just take a T: Sized. When I did this for cilium/ebpf we did the interface{} approach, as ctx definitions get quite hairy.
I suppose we could start with a T: Sized approach and also provide a few defs. That way we have some baked in forward compat.
WDYT?
I suppose we could start with a
T: Sizedapproach and also provide a few defs. That way we have some baked in forward compat.
That sounds good to me.