Skip to content
Snippets Groups Projects
  • Yafang Shao's avatar
    b6dcdb06
    kernel: remove get_task_comm() and print task comm directly · b6dcdb06
    Yafang Shao authored
    Patch series "Remove get_task_comm() and print task comm directly", v2.
    
    Since task->comm is guaranteed to be NUL-terminated, we can print it
    directly without the need to copy it into a separate buffer.  This
    simplifies the code and avoids unnecessary operations.
    
    
    This patch (of 5):
    
    Since task->comm is guaranteed to be NUL-terminated, we can print it
    directly without the need to copy it into a separate buffer.  This
    simplifies the code and avoids unnecessary operations.
    
    Link: https://lkml.kernel.org/r/20241219023452.69907-1-laoar.shao@gmail.com
    Link: https://lkml.kernel.org/r/20241219023452.69907-2-laoar.shao@gmail.com
    
    
    Signed-off-by: default avatarYafang Shao <laoar.shao@gmail.com>
    Cc: Serge Hallyn <serge@hallyn.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Darren Hart <dvhart@infradead.org>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: "André Almeida" <andrealmeid@igalia.com>
    Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Cc: Borislav Petkov (AMD) <bp@alien8.de>
    Cc: Kalle Valo <kvalo@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Petr Mladek <pmladek@suse.com>
    Cc: Danilo Krummrich <dakr@redhat.com>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: David Airlie <airlied@gmail.com>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: James Morris <jmorris@namei.org>
    Cc: Jani Nikula <jani.nikula@linux.intel.com>
    Cc: Jiri Slaby <jirislaby@kernel.org>
    Cc: Johannes Berg <johannes@sipsolutions.net>
    Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Cc: Karol Herbst <kherbst@redhat.com>
    Cc: Kees Cook <kees@kernel.org>
    Cc: Lyude Paul <lyude@redhat.com>
    Cc: Oded Gabbay <ogabbay@kernel.org>
    Cc: Paul Moore <paul@paul-moore.com>
    Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Cc: Simona Vetter <simona@ffwll.ch>
    Cc: Tvrtko Ursulin <tursulin@ursulin.net>
    Cc: Vineet Gupta <vgupta@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    b6dcdb06
    History
    kernel: remove get_task_comm() and print task comm directly
    Yafang Shao authored
    Patch series "Remove get_task_comm() and print task comm directly", v2.
    
    Since task->comm is guaranteed to be NUL-terminated, we can print it
    directly without the need to copy it into a separate buffer.  This
    simplifies the code and avoids unnecessary operations.
    
    
    This patch (of 5):
    
    Since task->comm is guaranteed to be NUL-terminated, we can print it
    directly without the need to copy it into a separate buffer.  This
    simplifies the code and avoids unnecessary operations.
    
    Link: https://lkml.kernel.org/r/20241219023452.69907-1-laoar.shao@gmail.com
    Link: https://lkml.kernel.org/r/20241219023452.69907-2-laoar.shao@gmail.com
    
    
    Signed-off-by: default avatarYafang Shao <laoar.shao@gmail.com>
    Cc: Serge Hallyn <serge@hallyn.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Darren Hart <dvhart@infradead.org>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: "André Almeida" <andrealmeid@igalia.com>
    Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Cc: Borislav Petkov (AMD) <bp@alien8.de>
    Cc: Kalle Valo <kvalo@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Petr Mladek <pmladek@suse.com>
    Cc: Danilo Krummrich <dakr@redhat.com>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: David Airlie <airlied@gmail.com>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: James Morris <jmorris@namei.org>
    Cc: Jani Nikula <jani.nikula@linux.intel.com>
    Cc: Jiri Slaby <jirislaby@kernel.org>
    Cc: Johannes Berg <johannes@sipsolutions.net>
    Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Cc: Karol Herbst <kherbst@redhat.com>
    Cc: Kees Cook <kees@kernel.org>
    Cc: Lyude Paul <lyude@redhat.com>
    Cc: Oded Gabbay <ogabbay@kernel.org>
    Cc: Paul Moore <paul@paul-moore.com>
    Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Cc: Simona Vetter <simona@ffwll.ch>
    Cc: Tvrtko Ursulin <tursulin@ursulin.net>
    Cc: Vineet Gupta <vgupta@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>