* Thomas De Schampheleire <[EMAIL PROTECTED]> [2007-03-27 08:16]: > Hi, > > I am following up on this project. We would actually like to track process > termination from within the kernel, not in userspace. > > I have noticed a function thread_exit() within thread.c. Is this function > called each time a thread is exited?
Given your mention of processes, I think you want lwp_exit(). > Is there a similar function for the termination of a process? proc_exit() in uts/common/os/exit.c. As others have hinted, the easiest way to figure out resource consumption is to sidle up beside the existing accounting calls (acct() and exacct_commit_proc() for processes, term_mstate() for lwps). - Stephen -- Stephen Hahn, PhD Solaris Kernel Development, Sun Microsystems [EMAIL PROTECTED] http://blogs.sun.com/sch/ _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
