summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2006-12-06 06:44:20 +0000
committerjulian <julian@FreeBSD.org>2006-12-06 06:44:20 +0000
commit2df2fdd6307a1e7c8f3a54371db7e6d93b63d691 (patch)
tree9cccc0bb3d97b3550652f3dffec1ae60ceb4f337 /lib/libkvm
parent69b0c3bf571a895213770ddb689d3cd445e9d423 (diff)
downloadFreeBSD-src-2df2fdd6307a1e7c8f3a54371db7e6d93b63d691.zip
FreeBSD-src-2df2fdd6307a1e7c8f3a54371db7e6d93b63d691.tar.gz
remove already commented out code
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_proc.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c
index 5ee126a..46fb26e 100644
--- a/lib/libkvm/kvm_proc.c
+++ b/lib/libkvm/kvm_proc.c
@@ -113,8 +113,6 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
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,25 +135,6 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
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),
- &mkg)) {
- _kvm_err(kd, kd->program,
- "can't read ksegrp at %x",
- TAILQ_FIRST(&proc.p_ksegrps));
- return (-1);
- }
- if (KREAD(kd,
- (u_long)TAILQ_FIRST(&mkg.kg_kseq), &mke)) {
- _kvm_err(kd, kd->program,
- "can't read kse at %x",
- TAILQ_FIRST(&mkg.kg_kseq));
- return (-1);
- }
- }
-#endif
}
if (KREAD(kd, (u_long)proc.p_ucred, &ucred) == 0) {
kp->ki_ruid = ucred.cr_ruid;
@@ -425,20 +404,8 @@ nopgrp:
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;
-
- /* Stuff from the kse */
- kp->ki_pctcpu = mke.ke_pctcpu;
- kp->ki_rqindex = mke.ke_rqindex;
-#else
kp->ki_pctcpu = 0;
kp->ki_rqindex = 0;
-#endif
} else {
kp->ki_tdflags = -1;
/* All the rest are 0 for now */
OpenPOWER on IntegriCloud