Article View: linux.kernel.netdev
Article #22689Re: [PATCH iproute2] ss: show the process column for -T, -Z, and -z
From: Frank Dressler
Date: Wed, 25 Nov 2026 17:34
Date: Wed, 25 Nov 2026 17:34
41 lines
10261 bytes
10261 bytes
On 11/24/26 21:41, Stephen Hemminger wrote:
> On Sat, 21 Nov 2026 22:50:31 +0000
> Frank Dressler <frank@dressler.pro> wrote:
>
>> The process column was disabled unless -p was passed. However,
>> ss with -T, -Z, and -z still collects the information, and the
>> man page requires them to show it without -p.
>>
>> Fixes: 84c45b8acb30 ("Reapply "ss: prevent "Process" column from being printed unless requested"")
>> Signed-off-by: Frank Dressler <frank@dressler.pro>
>
> The man page is not the source of truth here. Seems to me that adding another
> column without an arg is going to upset some people.
This patch would just ensure that -T alone behaves like -Tp which it did
until 84c45b8acb/1607bf531f (Dec 2023). It is already using that column,
it's just not displayed without -p. Because of the man page, people
might never try `-Tp`. (same for -z and -Z)
Before 84c45b8acb/1607bf531f (2023):
(a) `ss` displayed an empty Process column (wasting space)
(b) `ss -p` displayed process info in the Process column
(c) `ss -T` displayed thread info in the Process column
(d) `ss -pT` same as `ss -T`
The problem was (a) that the Process column was shown even when unused.
After:
(A) `ss` hides Process column (saves space)
(B) `ss -p` displays process info in the Process column
(C) `ss -T` does not display threads (as Process column is hidden)
(D) `ss -pT` displays thread info in the Process column
I think that the author of 1607bf531f only wanted to have (a)->(A) but
accidentally also caused (c)->(C).
Options I see:
(1) Show the column even without -p. (this patch)
(2) Fix the man page and require -p.
(3) Use a separate place to display this info, similar to -i. (COL_EXT)
Technical Details
Message-ID:
<976b81bb-cee8-4c35-9bf3-0cf5d2cec95a@dressler.pro>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371564-linux-kernel-netdev=dewy.ruReferences:
<20261121225031.106742-1-frank@dressler.pro> <20261124134134.6a6ac43e@phoenix.local>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371564-linux-kernel-netdev=dewy.ru From: frank@dressler.pro (Frank Dressler) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH iproute2] ss: show the process column for -T, -Z, and -z Date: Wed, 25 Nov 2026 17:34:23 +0000 Organization: Usenet Network Message-ID: <976b81bb-cee8-4c35-9bf3-0cf5d2cec95a@dressler.pro> References: <20261121225031.106742-1-frank@dressler.pro> <20261124134134.6a6ac43e@phoenix.local> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="264524"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:VwXEkIjtnIRtBmNhSltl7/j+K7g= sha256:vsMGK5wV4q7nHxABKSlwSZV1YxpPlb8v/usx0TpqWqs= sha1:8UjfTaTAOuixWkUe8dw8hw72GLo= sha256:4uyTuGmN7vQtQaQ2qbfECLuxXefj4n+2JAI3WVoFNzo= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id B55B5125E8C; Wed, 25 Nov 2026 20:34:46 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.05 X-Spam-Status: No, score=-2.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, PDS_PRO_TLD=1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=dressler.pro X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cwh4useWjVeF; Wed, 25 Nov 2026 20:34:43 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371564-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=dressler.pro X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 489AF125E82; Wed, 25 Nov 2026 20:34:35 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id E09AA472D8; Wed, 25 Nov 2026 17:34:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795628073; b=hf9ts9T3GRJcNkb6w8xj0w4w3eKZGXV2EgPcs1rKFVGxARHVE8W2qNgyG6Ta3r6/vZTa OSRDYv8PpIUpLi+CwzAq7YVymQ44JoGNBr1NG966Hx+j/i80jDQwYn5E1hW8kxXjbULlU 7nJaB+2pWMvwuEPDS+Rf0hyuQdUwooII24y5Ofkr+DZg/gOz2ErReZoplcsb3ii38ahnw 1LawXWN23e/yTpQjH0hhXopEKT6EwlAdWjP+8aErAUrkwTffmruuNc5aWRTjYndlkuZ1y 5lgeTcGQPrCDuHGVNT/fmZym08GznU6FEeQ5MFDc/qqf0VcZW0PPGY1cfABfyAgacWw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795628073; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=XGkTRreQRecpokK/FS2LMe6w1H+IZZD4gbNzNgzQEZI=; b=t3Clr8XY6toCELCl7BD/NqofH78ddcbTNnIa9kxYq2kWfKqIZaQod2J1JQatKjcAEHxM QN2tq4QFchpqsYpUVVl2mvpkYjQnKeJsCgRpo6YPAiJmGslyJ6YvnxzdQA16TWuXEygH2 BfII8P2myIKuX4CBaNJFFWlBztsb+91RPaE2LGvYMlMTOxUoQLiEPKHR87gsEQPTMgytr kbA7TqYhZYntQtMZOE2998HNjnUeHmGk0/ZbT54VHMO24N5Ljk08i/Ri3kBXM6DNHJGZy lZzmdf84903xqMtmlYZFDpTPIQw/edwzmpHW+XmQNPmsJ4fvWBTn1HNSwHcxVvEl6fQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=dressler.pro header.i=@dressler.pro header.a=rsa-sha256 header.s=uddkim-202310 header.b=KNZfn5Xi; dmarc=pass header.from=dressler.pro; spf=pass smtp.mailfrom=dressler.pro; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4F5F606A32A; Wed, 25 Nov 2026 17:34:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dressler.pro header.i=@dressler.pro header.a=rsa-sha256 header.s=uddkim-202310 header.b=KNZfn5Xi X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=62.146.106.33 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795628072; b=A+1OQz78y2a5vzSiIsav7jIltkCZkgKYk6OSrJJeKJ299kifZIQX7PQLfQFoKsaHkLVd HNYycolAR3RpVK8AALGJlk9GfyXpCmzLeHN0CaRjloZqV+V6HbLjFgg9p66yg2jxQ+495 +y17eu2DxrnQSCfLWCS2SGqPzjtdYVu06dNOFP8s66flKTsAsUIK+jK+PFNSvQm7NelLF SN9chRi4O5qKoCKxo8WSOjQWzEpg5n+1QsJtM6DnAyd3bAHuCGMkQyArGydTaCDspnFq3 cXlk2IOWYNn/Vcpbo2iBhDp8m9cc5zg1TUX39pLXbB1kh1HV0/YFHAArvWUyZdYVpHQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795628072; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=XGkTRreQRecpokK/FS2LMe6w1H+IZZD4gbNzNgzQEZI=; b=Wmsd7hWzxgrM93T5KnmZGVQ1Pv6CwtTWDJbealVChchtvXiCg5Y27TfCYEDJGDnZ0w6x GiUPjpjHKaFPIMQgD4L/9AoqHn59OA4GKzHS+PInRaxJt5SXBX1Nm36D+8FRyiiBjNkQP EghWCf2h/eHuf2qYI5uuHFPm6e8v6A2iqnRc8xFtmwDlIzHhNHxPah+pwSWHaVWf14tqb jfBlRGqWIx9F5o+fMAhWg9xDLOp1cT3rMNKEDbsAMeJe3ux8+E1uRk7Y8CqmFR/P0PvYE k+1+iATaaZut892p0byEiSpkEy3CfgmamxGl/X8ixarNm8reOXExCJvFef101uauHrw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=dressler.pro; spf=pass smtp.mailfrom=dressler.pro; dkim=pass header.d=dressler.pro header.i=@dressler.pro header.a=rsa-sha256 header.s=uddkim-202310 header.b=KNZfn5Xi; arc=none smtp.remote-ip=62.146.106.33 X-Received: from smtp02-ext3.udag.de (smtp02-ext3.udag.de [62.146.106.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39B51606A323 for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 17:34:31 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 39B51606A323 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dressler.pro X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dressler.pro X-Received: from [192.168.0.40] (unknown [37.228.226.218]) by smtp02-ext3.udag.de (Postfix) with ESMTPA id DE2EAE0B10; Wed, 25 Nov 2026 18:34:23 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dressler.pro; s=uddkim-202310; t=1795628064; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XGkTRreQRecpokK/FS2LMe6w1H+IZZD4gbNzNgzQEZI=; b=KNZfn5XiKTo75ErEO3k2cOalXWkuU82YQU3/TONhIzKHm5hT47Fcg61IatIfHMRuTP/w8K Y48pG2OcjTv9pxR+j0BhNg/2jG1U+ZrQxbg7waOz4slvPBdNOWRRQ+KmO9fzH2onPYB8Iq WSfDunQmZ+CT2vkuc9T2Oi3rFfTnWz7kzzwTKbfeMel9DpkKyxkv5ECR2kTvOnBMErMd4s 8autt7r+4n6dBeyPuD8OhDODtKlHKNlZg/nERvDCG0bt63lL2zFzurwZTDE9xcHMs2QmPL oYWJkL6/zGDlV8pcGtyS691yjxlq8El+0rLdhPqkKjeQfYvBX6X8/6KYwzmefg== X-Authentication-Results: smtp02-ext3.udag.de; auth=pass smtp.auth=dressler-pro-0001 smtp.mailfrom=frank@dressler.pro X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-Cc: netdev@vger.kernel.org X-In-Reply-To: <20261124134134.6a6ac43e@phoenix.local>