Add the LWP's runtime to kinfo_lwp.
This commit is contained in:
parent
9a92ddadc8
commit
f96f2e2a7f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: init_sysctl.c,v 1.98 2007/03/09 14:11:23 ad Exp $ */
|
||||
/* $NetBSD: init_sysctl.c,v 1.99 2007/03/11 21:38:38 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.98 2007/03/09 14:11:23 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.99 2007/03/11 21:38:38 ad Exp $");
|
||||
|
||||
#include "opt_sysv.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
@ -2937,6 +2937,8 @@ fill_lwp(struct lwp *l, struct kinfo_lwp *kl)
|
||||
#else
|
||||
kl->l_cpuid = KI_NOCPU;
|
||||
#endif
|
||||
kl->l_rtime_sec = l->l_rtime.tv_sec;
|
||||
kl->l_rtime_usec = l->l_rtime.tv_usec;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sysctl.h,v 1.168 2007/02/18 15:20:34 dsl Exp $ */
|
||||
/* $NetBSD: sysctl.h,v 1.169 2007/03/11 21:38:38 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -649,6 +649,8 @@ struct kinfo_lwp {
|
||||
char l_wmesg[KI_WMESGLEN]; /* wchan message */
|
||||
uint64_t l_wchan; /* PTR: sleep address. */
|
||||
uint64_t l_cpuid; /* LONG: CPU id */
|
||||
uint32_t l_rtime_sec; /* STRUCT TIMEVAL: Real time. */
|
||||
uint32_t l_rtime_usec; /* STRUCT TIMEVAL: Real time. */
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user