diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-05-24 17:09:07 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-05-24 17:09:07 +0000 |
commit | e05fc818bde3a8a2527f80385a118a6d402c7149 (patch) | |
tree | a0b0a76b98068f518a2641df5f1a9218ef38705a /sys/compat/linux/linux_emul.c | |
parent | b71a54d0dbec474c21302bee05d6b53db0e280eb (diff) | |
download | FreeBSD-src-e05fc818bde3a8a2527f80385a118a6d402c7149.zip FreeBSD-src-e05fc818bde3a8a2527f80385a118a6d402c7149.tar.gz |
Improve ktr(9) records in thread managment code.
Differential Revision: https://reviews.freebsd.org/D1464
Reviewed by: trasz
Diffstat (limited to 'sys/compat/linux/linux_emul.c')
-rw-r--r-- | sys/compat/linux/linux_emul.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_emul.c b/sys/compat/linux/linux_emul.c index 1dd6508..0023727 100644 --- a/sys/compat/linux/linux_emul.c +++ b/sys/compat/linux/linux_emul.c @@ -147,6 +147,9 @@ linux_proc_exit(void *arg __unused, struct proc *p) if (__predict_false(SV_CURPROC_ABI() != SV_ABI_LINUX)) return; + LINUX_CTR3(proc_exit, "thread(%d) proc(%d) p %p", + td->td_tid, p->p_pid, p); + pem = pem_find(p); if (pem == NULL) return; @@ -249,7 +252,7 @@ linux_thread_dtor(void *arg __unused, struct thread *td) return; td->td_emuldata = NULL; - LINUX_CTR1(exit, "thread dtor(%d)", em->em_tid); + LINUX_CTR1(thread_dtor, "thread(%d)", em->em_tid); free(em, M_TEMP); } @@ -271,8 +274,8 @@ linux_schedtail(struct thread *td) if (child_set_tid != NULL) { error = copyout(&em->em_tid, child_set_tid, sizeof(em->em_tid)); - LINUX_CTR4(clone, "schedtail(%d) %p stored %d error %d", + LINUX_CTR4(schedtail, "thread(%d) %p stored %d error %d", td->td_tid, child_set_tid, em->em_tid, error); } else - LINUX_CTR1(clone, "schedtail(%d)", em->em_tid); + LINUX_CTR1(schedtail, "thread(%d)", em->em_tid); } |