aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sched.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2012-03-08 19:41:05 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2012-03-08 19:41:05 +0000
commit44ad5475222d2043df40fcbe3f5703915ee16468 (patch)
tree2da9212f02713305c4064fc6709c0a7a490815ce /sys/sys/sched.h
parentfb175d1c8134efd7016acfbc1e725bd99df80eb9 (diff)
downloadsrc-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.h3
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)