Jordan Rome
Jordan Rome
I guess we might be waiting on our new github home to do this? (cc @ajor)
> From the docs I've read, it sounds like BPF iterators are only able to be run when invoked from userspace. So my question is: Is there any way that...
@ajor I like a lot of these suggestions for how to improve iterators. To summarize: > use bpftrace's async actions to invoke the iterators much better than the current `run_iter`...
> The BEGIN probe is started from userspace with BPF_PROG_RUN, but after that it's all kernel. Ah, I didn't realize that. Then forget my suggestion :) > I was picturing...
> Perhaps the message can be trivially adjusted to tell the user what to tweak? The error message "Failed to map_update_elem" doesn't come from bpftrace (it comes from libbpf I...
Closing due to inactivity.
Well it seems like I need something like this now because `__sys_bpf` returns -1 and sets the errno for PROG_LOAD and MAP_CREATE
@danobi From the bpf man page: ``` "For a successful call, the return value depends on the operation: BPF_MAP_CREATE The new file descriptor associated with the eBPF map. BPF_PROG_LOAD The...
So because libc is doing this translation and we only get -1 as the retval - how might we get the errno? (forgive my ignorance) Does this mean we can't...