diff mbox series

[RFC,2/2] fs/proc: Pass 'task->full_name' via 'proc_task_name()'

Message ID 20250314052715.610377-3-bhupesh@igalia.com (mailing list archive)
State RFC
Headers show
Series Dynamically allocate memory to store task's full name | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Bhupesh March 14, 2025, 5:27 a.m. UTC
Now that we have the get_task_full_name() implementation which allows
the dynamically allocated and filled in task's full name to be passed
to interested users, use it in proc_task_name() by default for
task names so that user-land can see them through appropriate tools
(such as 'ps').

Signed-off-by: Bhupesh <bhupesh@igalia.com>
---
 fs/proc/array.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/proc/array.c b/fs/proc/array.c
index d6a0369caa931..2cbeb1584f8a4 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -109,7 +109,7 @@  void proc_task_name(struct seq_file *m, struct task_struct *p, bool escape)
 	else if (p->flags & PF_KTHREAD)
 		get_kthread_comm(tcomm, sizeof(tcomm), p);
 	else
-		get_task_comm(tcomm, p);
+		get_task_full_name(tcomm, sizeof(tcomm), p);
 
 	if (escape)
 		seq_escape_str(m, tcomm, ESCAPE_SPACE | ESCAPE_SPECIAL, "\n\\");