Implement get_task_comm() in the LinuxKPI.

Submitted by:		Johannes Lundberg <johalun0@gmail.com>
MFC after:		1 week
Sponsored by:		Limelight Networks
Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2019-03-13 18:53:29 +00:00
parent 638fa5a36f
commit c7486758eb

View File

@ -183,4 +183,12 @@ local_clock(void)
return ((uint64_t)ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec);
}
static inline const char *
get_task_comm(char *buf, struct task_struct *task)
{
buf[0] = 0; /* buffer is too small */
return (task->comm);
}
#endif /* _LINUX_SCHED_H_ */