On Wed, Dec 02, 2020 at 09:55:26PM +0100, Florent Revest wrote: > The eBPF program iterates over all files and tasks. For all socket > files, it stores the tgid of the last task it encountered with a handle > to that socket. This is a heuristic for finding the "owner" of a socket > similar to what's done by lsof, ss, netstat or fuser. Potentially, this > information could be used from a cgroup_skb/*gress hook to try to > associate network traffic with processes. > > The test makes sure that a socket it created is tagged with prog_tests's > pid. Acked-by: Martin KaFai Lau <ka...@fb.com>
- [PATCH bpf-next v4 1/6] net: Remove the err argument from... Florent Revest
- [PATCH bpf-next v4 4/6] bpf: Add an iterator selftes... Florent Revest
- [PATCH bpf-next v4 3/6] bpf: Expose bpf_sk_storage_*... Florent Revest
- [PATCH bpf-next v4 5/6] bpf: Add an iterator selftes... Florent Revest
- Re: [PATCH bpf-next v4 5/6] bpf: Add an iterator... Martin KaFai Lau
- [PATCH bpf-next v4 6/6] bpf: Test bpf_sk_storage_get... Florent Revest
- Re: [PATCH bpf-next v4 6/6] bpf: Test bpf_sk_sto... Martin KaFai Lau
- Re: [PATCH bpf-next v4 6/6] bpf: Test bpf_sk... Florent Revest
- [PATCH bpf-next v4 2/6] bpf: Add a bpf_sock_from_fil... Florent Revest