From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH net-next v3 0/2] socket statistics for ss Date: Mon, 7 May 2018 11:43:31 -0700 Message-ID: <20180507184333.32688-1-sthemmin@microsoft.com> Cc: netdev@vger.kernel.org, dccp@vger.kernel.org, Stephen Hemminger To: davem@davemloft.net, gerrit@erg.abdn.ac.uk, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org Return-path: Received: from mail-pl0-f66.google.com ([209.85.160.66]:43010 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752465AbeEGSng (ORCPT ); Mon, 7 May 2018 14:43:36 -0400 Received: by mail-pl0-f66.google.com with SMTP id a39-v6so328539pla.10 for ; Mon, 07 May 2018 11:43:36 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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(-) -- 2.17.0