Skip to content

use get_task_name in ss

Stephen Hemminger netdev 1 version Applied

Status from this message: This series was applied to iproute2/iproute2.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2lib: add root path argument to get_task_nameinclude/utils.h ip/iptuntap.c lib/fs.c +8 more+17 -120 replies
2/2ss: use get_task_name instead of parsing statmisc/ss.c+12 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH iproute2 0/2] use get_task_name in ss

Recent proposed patch by Prashanth showed that ss command parsing of proc with fscanf is fragile. Here is a pair of patches which allows reusing existing code in iproute2 lib/fs for that instead.

Stephen Hemminger (2):
lib: add root path argument to get_task_name
ss: use get_task_name instead of parsing stat

 include/utils.h |  2 +-
 ip/iptuntap.c   |  2 +-
 lib/fs.c        |  9 +++++++--
 misc/ss.c       | 34 ++++++++++++----------------------
 rdma/res-cmid.c |  2 +-
 rdma/res-cq.c   |  2 +-
 rdma/res-ctx.c  |  2 +-
 rdma/res-mr.c   |  2 +-
 rdma/res-pd.c   |  2 +-
 rdma/res-qp.c   |  2 +-
 rdma/res-srq.c  |  2 +-
 rdma/stat.c     |  2 +-
 12 files changed, 29 insertions(+), 34 deletions(-)
Signature · 1 line
2.53.0