proc.h (172207) | proc.h (172264) |
---|---|
1/*- 2 * Copyright (c) 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)proc.h 8.15 (Berkeley) 5/19/95 | 1/*- 2 * Copyright (c) 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)proc.h 8.15 (Berkeley) 5/19/95 |
35 * $FreeBSD: head/sys/sys/proc.h 172207 2007-09-17 05:31:39Z jeff $ | 35 * $FreeBSD: head/sys/sys/proc.h 172264 2007-09-21 04:10:23Z jeff $ |
36 */ 37 38#ifndef _SYS_PROC_H_ 39#define _SYS_PROC_H_ 40 41#include <sys/callout.h> /* For struct callout. */ 42#include <sys/event.h> /* For struct klist. */ 43#ifndef _KERNEL --- 193 unchanged lines hidden (view full) --- 237 struct lock_list_entry *td_sleeplocks; /* (k) Held sleep locks. */ 238 int td_intr_nesting_level; /* (k) Interrupt recursion. */ 239 int td_pinned; /* (k) Temporary cpu pin count. */ 240 struct kse_thr_mailbox *td_mailbox; /* (*) Userland mailbox address. */ 241 struct ucred *td_ucred; /* (k) Reference to credentials. */ 242 struct thread *td_standin; /* (k + a) Use this for an upcall. */ 243 struct kse_upcall *td_upcall; /* (k + t) Upcall structure. */ 244 u_int td_estcpu; /* (t) estimated cpu utilization */ | 36 */ 37 38#ifndef _SYS_PROC_H_ 39#define _SYS_PROC_H_ 40 41#include <sys/callout.h> /* For struct callout. */ 42#include <sys/event.h> /* For struct klist. */ 43#ifndef _KERNEL --- 193 unchanged lines hidden (view full) --- 237 struct lock_list_entry *td_sleeplocks; /* (k) Held sleep locks. */ 238 int td_intr_nesting_level; /* (k) Interrupt recursion. */ 239 int td_pinned; /* (k) Temporary cpu pin count. */ 240 struct kse_thr_mailbox *td_mailbox; /* (*) Userland mailbox address. */ 241 struct ucred *td_ucred; /* (k) Reference to credentials. */ 242 struct thread *td_standin; /* (k + a) Use this for an upcall. */ 243 struct kse_upcall *td_upcall; /* (k + t) Upcall structure. */ 244 u_int td_estcpu; /* (t) estimated cpu utilization */ |
245 u_int td_slptime; /* (t) How long completely blocked. */ | 245 u_int td_slptick; /* (t) Time at sleep. */ |
246 struct rusage td_ru; /* (t) rusage information */ 247 uint64_t td_runtime; /* (t) How many cpu ticks we've run. */ 248 u_int td_pticks; /* (t) Statclock hits for profiling */ 249 u_int td_sticks; /* (t) Statclock hits in system mode. */ 250 u_int td_iticks; /* (t) Statclock hits in intr mode. */ 251 u_int td_uticks; /* (t) Statclock hits in user mode. */ 252 u_int td_uuticks; /* (k) Statclock hits (usr), for UTS. */ 253 u_int td_usticks; /* (k) Statclock hits (sys), for UTS. */ --- 261 unchanged lines hidden (view full) --- 515 struct ksiginfo *p_ksi; /* Locked by parent proc lock */ 516 sigqueue_t p_sigqueue; /* (c) Sigs not delivered to a td. */ 517#define p_siglist p_sigqueue.sq_signals 518 519/* The following fields are all zeroed upon creation in fork. */ 520#define p_startzero p_oppid 521 pid_t p_oppid; /* (c + e) Save ppid in ptrace. XXX */ 522 struct vmspace *p_vmspace; /* (b) Address space. */ | 246 struct rusage td_ru; /* (t) rusage information */ 247 uint64_t td_runtime; /* (t) How many cpu ticks we've run. */ 248 u_int td_pticks; /* (t) Statclock hits for profiling */ 249 u_int td_sticks; /* (t) Statclock hits in system mode. */ 250 u_int td_iticks; /* (t) Statclock hits in intr mode. */ 251 u_int td_uticks; /* (t) Statclock hits in user mode. */ 252 u_int td_uuticks; /* (k) Statclock hits (usr), for UTS. */ 253 u_int td_usticks; /* (k) Statclock hits (sys), for UTS. */ --- 261 unchanged lines hidden (view full) --- 515 struct ksiginfo *p_ksi; /* Locked by parent proc lock */ 516 sigqueue_t p_sigqueue; /* (c) Sigs not delivered to a td. */ 517#define p_siglist p_sigqueue.sq_signals 518 519/* The following fields are all zeroed upon creation in fork. */ 520#define p_startzero p_oppid 521 pid_t p_oppid; /* (c + e) Save ppid in ptrace. XXX */ 522 struct vmspace *p_vmspace; /* (b) Address space. */ |
523 u_int p_swtime; /* (j) Time swapped in or out. */ | 523 u_int p_swtick; /* (j) Tick when swapped in or out. */ |
524 struct itimerval p_realtimer; /* (c) Alarm timer. */ 525 struct rusage p_ru; /* (a) Exit information. */ 526 struct rusage_ext p_rux; /* (cj) Internal resource usage. */ 527 struct rusage_ext p_crux; /* (c) Internal child resource usage. */ 528 int p_profthreads; /* (c) Num threads in addupc_task. */ 529 volatile int p_exitthreads; /* (j) Number of threads exiting */ 530 int p_traceflag; /* (o) Kernel trace points. */ 531 struct vnode *p_tracevp; /* (c + o) Trace to vnode. */ --- 384 unchanged lines hidden --- | 524 struct itimerval p_realtimer; /* (c) Alarm timer. */ 525 struct rusage p_ru; /* (a) Exit information. */ 526 struct rusage_ext p_rux; /* (cj) Internal resource usage. */ 527 struct rusage_ext p_crux; /* (c) Internal child resource usage. */ 528 int p_profthreads; /* (c) Num threads in addupc_task. */ 529 volatile int p_exitthreads; /* (j) Number of threads exiting */ 530 int p_traceflag; /* (o) Kernel trace points. */ 531 struct vnode *p_tracevp; /* (c + o) Trace to vnode. */ --- 384 unchanged lines hidden --- |