diff options
author | John Baldwin <jhb@FreeBSD.org> | 2012-03-08 19:41:05 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2012-03-08 19:41:05 +0000 |
commit | 44ad5475222d2043df40fcbe3f5703915ee16468 (patch) | |
tree | 2da9212f02713305c4064fc6709c0a7a490815ce /sys/sys/sched.h | |
parent | fb175d1c8134efd7016acfbc1e725bd99df80eb9 (diff) | |
download | src-44ad5475222d2043df40fcbe3f5703915ee16468.tar.gz src-44ad5475222d2043df40fcbe3f5703915ee16468.zip |
Add a new sched_clear_name() method to the scheduler interface to clear
the cached name used for KTR_SCHED traces when a thread's name changes.
This way KTR_SCHED traces (and thus schedgraph) will notice when a thread's
name changes, most commonly via execve().
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=232700
Diffstat (limited to 'sys/sys/sched.h')
-rw-r--r-- | sys/sys/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/sched.h b/sys/sys/sched.h index 4380f78d6b34..4b8387c1d26c 100644 --- a/sys/sys/sched.h +++ b/sys/sys/sched.h @@ -138,6 +138,9 @@ int sched_sizeof_thread(void); * functions. */ char *sched_tdname(struct thread *td); +#ifdef KTR +void sched_clear_tdname(struct thread *td); +#endif static __inline void sched_pin(void) |