Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2017 15:47:27 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315074 - head/sys/kern
Message-ID:  <201703111547.v2BFlRPe019648@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Sat Mar 11 15:47:27 2017
New Revision: 315074
URL: https://svnweb.freebsd.org/changeset/base/315074

Log:
  actually implement proc:::lwp-exit probe
  
  MFC after:	4 days

Modified:
  head/sys/kern/kern_thread.c

Modified: head/sys/kern/kern_thread.c
==============================================================================
--- head/sys/kern/kern_thread.c	Sat Mar 11 15:30:35 2017	(r315073)
+++ head/sys/kern/kern_thread.c	Sat Mar 11 15:47:27 2017	(r315074)
@@ -473,6 +473,7 @@ thread_exit(void)
 	KASSERT(p != NULL, ("thread exiting without a process"));
 	CTR3(KTR_PROC, "thread_exit: thread %p (pid %ld, %s)", td,
 	    (long)p->p_pid, td->td_name);
+	SDT_PROBE0(proc, , , lwp__exit);
 	KASSERT(TAILQ_EMPTY(&td->td_sigqueue.sq_list), ("signal pending"));
 
 #ifdef AUDIT



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703111547.v2BFlRPe019648>