Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2006 20:28:30 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 101290 for review
Message-ID:  <200607112028.k6BKSUg6091784@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101290

Change 101290 by jb@jb_freebsd2 on 2006/07/11 20:28:23

	Remove a few kse artifacts that got missed in the bike_sched drive by
	shooting.

Affected files ...

.. //depot/projects/kmacy_sun4v_stable/src/lib/libkvm/kvm_proc.c#2 edit

Differences ...

==== //depot/projects/kmacy_sun4v_stable/src/lib/libkvm/kvm_proc.c#2 (text+ko) ====

@@ -113,8 +113,6 @@
 	struct ucred ucred;
 	struct prison pr;
 	struct thread mtd;
-	/*struct kse mke;*/
-	struct ksegrp mkg;
 	struct proc proc;
 	struct proc pproc;
 	struct timeval tv;
@@ -137,6 +135,7 @@
 				    TAILQ_FIRST(&proc.p_threads));
 				return (-1);
 			}
+#if 0
 			if ((proc.p_flag & P_SA) == 0) {
 				if (KREAD(kd,
 				    (u_long)TAILQ_FIRST(&proc.p_ksegrps),
@@ -146,7 +145,6 @@
 					    TAILQ_FIRST(&proc.p_ksegrps));
 					return (-1);
 				}
-#if 0
 				if (KREAD(kd,
 				    (u_long)TAILQ_FIRST(&mkg.kg_kseq), &mke)) {
 					_kvm_err(kd, kd->program,
@@ -154,8 +152,8 @@
 					    TAILQ_FIRST(&mkg.kg_kseq));
 					return (-1);
 				}
+			}
 #endif
-			}
 		}
 		if (KREAD(kd, (u_long)proc.p_ucred, &ucred) == 0) {
 			kp->ki_ruid = ucred.cr_ruid;
@@ -418,13 +416,13 @@
 			kp->ki_oncpu = mtd.td_oncpu;
 
 			if (!(proc.p_flag & P_SA)) {
+#if 0
 				/* stuff from the ksegrp */
 				kp->ki_slptime = mkg.kg_slptime;
 				kp->ki_pri.pri_class = mkg.kg_pri_class;
 				kp->ki_pri.pri_user = mkg.kg_user_pri;
 				kp->ki_estcpu = mkg.kg_estcpu;
 
-#if 0
 				/* Stuff from the kse */
 				kp->ki_pctcpu = mke.ke_pctcpu;
 				kp->ki_rqindex = mke.ke_rqindex;



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