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:
parent
638fa5a36f
commit
c7486758eb
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user