🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
3 messages
3 total messages Started by Frank Dressler Sat, 21 Nov 2026 22:50
[PATCH iproute2] ss: show the process column for -T, -Z, and -z
#20246
Author: Frank Dressler
Date: Sat, 21 Nov 2026 22:50
28 lines
8915 bytes
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>
---
 misc/ss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/ss.c b/misc/ss.c
index f4160f59..b5430a01 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -5787,7 +5787,7 @@ int main(int argc, char *argv[])
 	if (ssfilter_parse(&current_filter.f, argc, argv, filter_fp))
 		usage();
 
-	if (!show_processes)
+	if (!show_processes && !show_threads && !show_proc_ctx && !show_sock_ctx)
 		columns[COL_PROC].disabled = 1;
 
 	if (!show_queues) {

base-commit: 87cb3f4198507331b9308689d4a726d17db63dd3
-- 
2.56.1
Re: [PATCH iproute2] ss: show the process column for -T, -Z, and -z
#22107
Author: Stephen Hemminger
Date: Tue, 24 Nov 2026 21:41
13 lines
11357 bytes
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.
Re: [PATCH iproute2] ss: show the process column for -T, -Z, and -z
#22689
Author: Frank Dressler
Date: Wed, 25 Nov 2026 17:34
41 lines
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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads