1.3.34+

Michael Meskes (meskes@Informatik.RWTH-Aachen.DE)
Wed, 18 Oct 1995 11:40:54 +0100 (MET)


Could anyone explain me why I get a bsd_comp.o module despite not compiling
PPP (neither in the kernel nor as a module)?

Now that the kswapper is in the standard kernel, here's a small patch for
those who would like to see how many pages were swapped per process. Just be
warned with this patch you also have to make a minor patch to procps. It
wants to know how many values are printed via the proc filesystem.

Michael

*** linux/fs/proc/array.c.old Tue Sep 12 13:12:31 1995
--- linux/fs/proc/array.c Tue Sep 12 13:09:04 1995
***************
*** 5,10 ****
--- 5,12 ----
* based on ideas by Darren Senn
*
* Fixes:
+ * Michael Meskes : adde nswap and cnswap to stat
+ *
* Michael. K. Johnson: stat,statm extensions.
* <johnsonm@stolaf.edu>
*
***************
*** 431,438 ****
else
tty_pgrp = -1;
return sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \
! %lu %lu %lu %ld %ld %ld %ld %ld %ld %lu %lu %ld %lu %lu %lu %lu %lu %lu %lu %lu %lu \
! %lu %lu %lu %lu\n",
pid,
tsk->comm,
state,
--- 433,440 ----
else
tty_pgrp = -1;
return sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \
! %lu %lu %lu %lu %lu %ld %ld %ld %ld %ld %ld %lu %lu %ld %lu %lu %lu %lu %lu \
! %lu %lu %lu %lu %lu %lu %lu %lu\n",
pid,
tsk->comm,
state,
***************
*** 466,472 ****
tsk->blocked,
sigignore,
sigcatch,
! wchan);
}

static inline void statm_pte_range(pmd_t * pmd, unsigned long address, unsigned long size,
--- 468,476 ----
tsk->blocked,
sigignore,
sigcatch,
! wchan,
! tsk->nswap,
! tsk->cnswap);
}

static inline void statm_pte_range(pmd_t * pmd, unsigned long address, unsigned long size,

-- 
Michael Meskes 
Lehrstuhl fuer angewandte Mathematik insb. Informatik
RWTH-Aachen, D-52056 Aachen, Germany
email: meskes@informatik.rwth-aachen.de