Home
last modified time | relevance | path

Searched refs:rss_stat (Results 1 – 5 of 5) sorted by relevance

/linux-2.6.39/include/linux/
Dmm.h1066 atomic_long_set(&mm->rss_stat.count[member], value); in set_mm_counter()
1073 atomic_long_add(value, &mm->rss_stat.count[member]); in add_mm_counter()
1078 atomic_long_inc(&mm->rss_stat.count[member]); in inc_mm_counter()
1083 atomic_long_dec(&mm->rss_stat.count[member]); in dec_mm_counter()
1093 mm->rss_stat.count[member] = value; in set_mm_counter()
1098 return mm->rss_stat.count[member]; in get_mm_counter()
1103 mm->rss_stat.count[member] += value; in add_mm_counter()
1108 mm->rss_stat.count[member]++; in inc_mm_counter()
1113 mm->rss_stat.count[member]--; in dec_mm_counter()
Dmm_types.h265 struct mm_rss_stat rss_stat; member
Dsched.h1261 struct task_rss_stat rss_stat; member
/linux-2.6.39/kernel/
Dfork.c499 memset(&mm->rss_stat, 0, sizeof(mm->rss_stat)); in mm_init()
1096 memset(&p->rss_stat, 0, sizeof(p->rss_stat)); in copy_process()
/linux-2.6.39/mm/
Dmemory.c133 if (task->rss_stat.count[i]) { in __sync_task_rss_stat()
134 add_mm_counter(mm, i, task->rss_stat.count[i]); in __sync_task_rss_stat()
135 task->rss_stat.count[i] = 0; in __sync_task_rss_stat()
138 task->rss_stat.events = 0; in __sync_task_rss_stat()
146 task->rss_stat.count[member] += val; in add_mm_counter_fast()
159 if (unlikely(task->rss_stat.events++ > TASK_RSS_EVENTS_THRESH)) in check_sync_rss_stat()
171 val = atomic_long_read(&mm->rss_stat.count[member]); in get_mm_counter()