diff options
author | jhb <jhb@FreeBSD.org> | 2012-03-08 19:41:05 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-03-08 19:41:05 +0000 |
commit | 4fea355eb2254754b2e522d87d81c5562252116a (patch) | |
tree | 2da9212f02713305c4064fc6709c0a7a490815ce /sys/sys/sched.h | |
parent | 486b631cb38cbd91bd7a8f6ab87a6d0ecdf7a8ac (diff) | |
download | FreeBSD-src-4fea355eb2254754b2e522d87d81c5562252116a.zip FreeBSD-src-4fea355eb2254754b2e522d87d81c5562252116a.tar.gz |
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
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 4380f78..4b8387c 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) |