All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2] ss: show the process column for -T, -Z, and -z
@ 2026-11-21 22:50 Frank Dressler
  2026-11-24 21:41 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Dressler @ 2026-11-21 22:50 UTC (permalink / raw)
  To: netdev; +Cc: stephen

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH iproute2] ss: show the process column for -T, -Z, and -z
  2026-11-21 22:50 [PATCH iproute2] ss: show the process column for -T, -Z, and -z Frank Dressler
@ 2026-11-24 21:41 ` Stephen Hemminger
  2026-11-25 17:34   ` Frank Dressler
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2026-11-24 21:41 UTC (permalink / raw)
  To: Frank Dressler; +Cc: netdev

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH iproute2] ss: show the process column for -T, -Z, and -z
  2026-11-24 21:41 ` Stephen Hemminger
@ 2026-11-25 17:34   ` Frank Dressler
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Dressler @ 2026-11-25 17:34 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-25 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21 22:50 [PATCH iproute2] ss: show the process column for -T, -Z, and -z Frank Dressler
2026-11-24 21:41 ` Stephen Hemminger
2026-11-25 17:34   ` Frank Dressler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.