usched-misc.diff

belczyk, 12/21/2005 06:41 PM

Download (3.52 KB)

View differences:

bin/ps/keyword.c 20 Dec 2005 19:02:34 -0000
153 153
	{"re", "RE", NULL, 0, pvar, NULL, 3, POFF(p_swtime), UINT, "d", NULL},
154 154
	{"rgid", "RGID", NULL, 0, evar, NULL, UIDLEN, EOFF(e_ucred.cr_rgid),
155 155
		UINT, UIDFMT, NULL},
156
	{"rlink", "RLINK", NULL, 0, pvar, NULL, 8, POFF(p_lwp.lwp_procq.tqe_prev), KPTR, "lx",
157
		NULL},
158 156
	{"rss", "RSS", NULL, 0, p_rssize, NULL, 4, 0, 0, NULL, NULL},
159 157
	{"rssize", "", "rsz", 0, NULL, NULL, 0, 0, 0, NULL, NULL},
160 158
	{"rsz", "RSZ", NULL, 0, rssize, NULL, 4, 0, 0, NULL, NULL},
bin/ps/ps.1 20 Dec 2005 19:03:29 -0000
424 424
.It rgid
425 425
real group
426 426
.Tn ID
427
.It rlink
428
reverse link on run queue, or 0
429 427
.It rss
430 428
resident set size
431 429
.It rsz
sys/kern/kern_usched.c 20 Dec 2005 19:42:18 -0000
161 161
	if (item && item != p->p_usched) {
162 162
		p->p_usched->release_curproc(&p->p_lwp);
163 163
		p->p_usched = item;
164
		/*
165
		 * Give the new usched a chance to recognize the lwp
166
		 * as a 'new' one.
167
		 */
168
		bzero(&p->p_lwp.lwp_usdata, sizeof(p->p_lwp.lwp_usdata));
164 169
	} else if (item == NULL) {
165 170
		error = EINVAL;
166 171
	}
sys/kern/usched_bsd4.c 20 Dec 2005 18:59:29 -0000
81 81
#define lwp_rqindex	lwp_usdata.bsd4.rqindex
82 82
#define lwp_origcpu	lwp_usdata.bsd4.origcpu
83 83
#define lwp_estcpu	lwp_usdata.bsd4.estcpu
84
#define lwp_procq	lwp_usdata.bsd4.lwp_procq
84 85

  
85 86
static void bsd4_acquire_curproc(struct lwp *lp);
86 87
static void bsd4_release_curproc(struct lwp *lp);
sys/sys/proc.h 20 Dec 2005 18:58:21 -0000
132 132
struct jail;
133 133

  
134 134
struct lwp {
135
	TAILQ_ENTRY(lwp) lwp_procq;	/* run/sleep queue. */
136 135
	LIST_ENTRY(lwp) lwp_list;	/* List of all threads in the proc. */
137 136

  
138 137
	struct proc	*lwp_proc;	/* Link to our proc. */
sys/sys/usched.h 20 Dec 2005 18:58:18 -0000
42 42
     * BSD4 scheduler. 
43 43
     */
44 44
    struct {
45
	TAILQ_ENTRY(lwp) lwp_procq;	/* run/sleep queue. */
45 46
	short	priority;	/* lower is better */
46 47
	char	interactive;	/* (currently not used) */
47 48
	char	rqindex;
......
49 50
	int	estcpu;		/* dynamic priority modification */
50 51
    } bsd4;
51 52

  
52
    int		pad[4];		/* PAD for future expansion */
53
    int		pad[8];		/* PAD for future expansion */
53 54
};
54 55

  
55 56
/*