patch-1.3.34 linux/kernel/sys.c

Next file: linux/mm/swap.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.33/linux/kernel/sys.c linux/kernel/sys.c
@@ -766,6 +766,7 @@
 			r.ru_stime.tv_usec = CT_TO_USECS(p->stime);
 			r.ru_minflt = p->min_flt;
 			r.ru_majflt = p->maj_flt;
+			r.ru_nswap = p->nswap;
 			break;
 		case RUSAGE_CHILDREN:
 			r.ru_utime.tv_sec = CT_TO_SECS(p->cutime);
@@ -774,6 +775,7 @@
 			r.ru_stime.tv_usec = CT_TO_USECS(p->cstime);
 			r.ru_minflt = p->cmin_flt;
 			r.ru_majflt = p->cmaj_flt;
+			r.ru_nswap = p->cnswap;
 			break;
 		default:
 			r.ru_utime.tv_sec = CT_TO_SECS(p->utime + p->cutime);
@@ -782,6 +784,7 @@
 			r.ru_stime.tv_usec = CT_TO_USECS(p->stime + p->cstime);
 			r.ru_minflt = p->min_flt + p->cmin_flt;
 			r.ru_majflt = p->maj_flt + p->cmaj_flt;
+			r.ru_nswap = p->nswap + p->cnswap;
 			break;
 	}
 	memcpy_tofs(ru, &r, sizeof(r));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this