task_nommu.c (55fa518867978e1f5fd8353098f80d125ac734d7) | task_nommu.c (025dfdafe77f20b3890981a394774baab7b9c827) |
---|---|
1 2#include <linux/mm.h> 3#include <linux/file.h> 4#include <linux/fdtable.h> 5#include <linux/mount.h> 6#include <linux/ptrace.h> 7#include <linux/seq_file.h> 8#include "internal.h" 9 10/* 11 * Logic: we've got two memory sums for each process, "shared", and | 1 2#include <linux/mm.h> 3#include <linux/file.h> 4#include <linux/fdtable.h> 5#include <linux/mount.h> 6#include <linux/ptrace.h> 7#include <linux/seq_file.h> 8#include "internal.h" 9 10/* 11 * Logic: we've got two memory sums for each process, "shared", and |
12 * "non-shared". Shared memory may get counted more then once, for | 12 * "non-shared". Shared memory may get counted more than once, for |
13 * each process that owns it. Non-shared memory is counted 14 * accurately. 15 */ 16void task_mem(struct seq_file *m, struct mm_struct *mm) 17{ 18 struct vm_list_struct *vml; 19 unsigned long bytes = 0, sbytes = 0, slack = 0; 20 --- 175 unchanged lines hidden --- | 13 * each process that owns it. Non-shared memory is counted 14 * accurately. 15 */ 16void task_mem(struct seq_file *m, struct mm_struct *mm) 17{ 18 struct vm_list_struct *vml; 19 unsigned long bytes = 0, sbytes = 0, slack = 0; 20 --- 175 unchanged lines hidden --- |