Skip to content

socket statistics for ss

Stephen Hemminger dccp netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 7 repliesIn review
  2. v11 patch 1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2inet: add bound ports statisticinclude/net/inet_hashtables.h include/net/inet_timewait_sock.h net/dccp/proto.c +4 more+34 -80 replies
2/2socket: keep track of the number of sockets allocatednet/socket.c+19 -20 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/2] socket statistics for ss

The eventual goal is to remove all accesses to slab statistics by iproute2 ss command. This are preliminary steps to add two statistics which are not working now, because of slab merging and changes that were done years ago to allow for common inet_hash tables.

Stephen Hemminger (2):
inet: add bound ports statistic
socket: keep track of the number of sockets allocated

v3
- fix build :-(
- add allocated sockets statistic

 include/net/inet_hashtables.h    |  3 +++
 include/net/inet_timewait_sock.h |  2 ++
 net/dccp/proto.c                 |  1 +
 net/ipv4/inet_hashtables.c       | 22 +++++++++++++++++++---
 net/ipv4/inet_timewait_sock.c    |  8 +++++---
 net/ipv4/proc.c                  |  5 +++--
 net/ipv4/tcp.c                   |  1 +
 net/socket.c                     | 21 +++++++++++++++++++--
 8 files changed, 53 insertions(+), 10 deletions(-)
Signature · 1 line
2.17.0