insearchoflosttime
insearchoflosttime
Hi @kochia3, I'm not sure I fully understand your question. rustc is a cross-compiler, so it can generate targets for any architecture. Can you elaborate on your question?
ksyscall is not currently supported in this crate, but we should add this.
[bpf_xdp_attach()](https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/tree/tools/lib/bpf/netlink.c#n277) supports this in libbpf but we haven't yet added bpf_xdp_attach() support for libbpf-rs. It's on[ the list of features missing for feature-parity with libbpf 1.0](https://github.com/libbpf/libbpf-rs/wiki/Feature-parity-with-libbpf-1.0).
Thanks for finding this and submitting a fix! I left a comment in your 2nd commit but other than that, this makes sense to me!
Thanks for following up @trtt! imo the consensus is that if fd < 0 then we should skip it.
> Sorry, I'm not sure I understand - how are the APIs related to doing static linking? I probably won't have a ton of extra time to dedicate to redoing...
@jyn514 Yes, I would be happy to merge this in as a temporary workaround! Can you resubmit this? Because the "deterministic-objs" branch has been deleted, I can't reopen this. Thanks!
@jyn514 Do you mind rebasing and resolving merge conflicts? Thanks!
~~On further thought, @jyn514 I'll pick up https://github.com/libbpf/libbpf-rs/issues/177 next week to get that in (or if you or someone else would like to work on it, that'd be awesome, but...
@anakryiko had a comment there "Will this API still make sense if/when we add support for libbpf's BTF writing APIs? I'm worried a bit that we are exposing these types...