]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: Factor out fd iterating logic from user_ent_hash_build()
authorPeilin Ye <peilin.ye@bytedance.com>
Wed, 25 May 2022 02:53:21 +0000 (19:53 -0700)
committerDavid Ahern <dsahern@kernel.org>
Mon, 30 May 2022 15:54:23 +0000 (09:54 -0600)
commit12d491e58ff574219f1c01f844c0c76e4f4e5eef
treeb432108ff4192b40592fbcd07a8e82e1fdeab900
parent210018bfe99b21effd3f6f2f67dec7dcba49decc
ss: Factor out fd iterating logic from user_ent_hash_build()

We are planning to add a thread version of the -p, --process option.
Move the logic iterating $PROC_ROOT/$PID/fd/ into a new function,
user_ent_hash_build_task(), to make it easier.

Since we will use this function for both processes and threads, rename
local variables as such (e.g. from "process" to "task").

Signed-off-by: Peilin Ye <peilin.ye@bytedance.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
misc/ss.c