|
@@ -1503,7 +1503,11 @@ static inline void set_task_comm(struct task_struct *tsk, const char *from)
|
|
|
__set_task_comm(tsk, from, false);
|
|
__set_task_comm(tsk, from, false);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-extern char *get_task_comm(char *to, struct task_struct *tsk);
|
|
|
|
|
|
|
+extern char *__get_task_comm(char *to, size_t len, struct task_struct *tsk);
|
|
|
|
|
+#define get_task_comm(buf, tsk) ({ \
|
|
|
|
|
+ BUILD_BUG_ON(sizeof(buf) != TASK_COMM_LEN); \
|
|
|
|
|
+ __get_task_comm(buf, sizeof(buf), tsk); \
|
|
|
|
|
+})
|
|
|
|
|
|
|
|
#ifdef CONFIG_SMP
|
|
#ifdef CONFIG_SMP
|
|
|
void scheduler_ipi(void);
|
|
void scheduler_ipi(void);
|