patch-1.3.77 linux/fs/proc/array.c

Next file: linux/include/asm-alpha/atomic.h
Previous file: linux/fs/nfs/nfsroot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.76/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -194,6 +194,7 @@
 {
 	int i, len;
 	unsigned sum = 0;
+	extern unsigned long total_forks;
 
 	for (i = 0 ; i < NR_IRQS ; i++)
 		sum += kstat.interrupts[i];
@@ -230,9 +231,11 @@
 		len += sprintf(buffer + len, " %u", kstat.interrupts[i]);
 	len += sprintf(buffer + len,
 		"\nctxt %u\n"
-		"btime %lu\n",
+		"btime %lu\n"
+		"processes %lu\n",
 		kstat.context_swtch,
-		xtime.tv_sec - jiffies / HZ);
+		xtime.tv_sec - jiffies / HZ,
+		total_forks);
 	return len;
 }
 

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