Closed e3prom closed 4 years ago
Awesome! We've been putting implementations of new tools in https://github.com/rust-bpf/bpf-tools instead -- mind moving this PR there?
I don't mind moving it (I can make another PR if necessary). I also noticed the 'Multimap' crate must be added to the dependencies.
@e3prom yes, you'd need to open a new PR against the rust-bpf/bpf-tools repo.
Created new PR at https://github.com/rust-bpf/bpf-tools/pull/12
Closing this PR in favor of the one in the bpf-tools repo.
Hello,
MultiMap
to holds the process's argument(s) vector and to use a Mutex and an Arc so the object can be "safely" accessed in memory. A raw pointer to it is kept inside thedata_t
structure. Due to time constraints, this is the most elegant way I found to access the arg vectors (sorry!). The tool has been successfully tested on aLinux 4.15.0-112-generic
kernel. TheCGROUPSET
filter has not been ported/implemented in the user-land part, but the filter has been preserved the bpf code.Regards.