Searched refs:task (Results 1 – 9 of 9) sorted by relevance
/mm/ |
D | oom_kill.c | 289 static int oom_evaluate_task(struct task_struct *task, void *arg) in oom_evaluate_task() argument 294 if (oom_unkillable_task(task, NULL, oc->nodemask)) in oom_evaluate_task() 303 if (!is_sysrq_oom(oc) && tsk_is_oom_victim(task)) { in oom_evaluate_task() 304 if (test_bit(MMF_OOM_SKIP, &task->signal->oom_mm->flags)) in oom_evaluate_task() 313 if (oom_task_origin(task)) { in oom_evaluate_task() 318 points = oom_badness(task, NULL, oc->nodemask, oc->totalpages); in oom_evaluate_task() 328 get_task_struct(task); in oom_evaluate_task() 329 oc->chosen = task; in oom_evaluate_task() 375 struct task_struct *task; in dump_tasks() local 383 task = find_lock_task_mm(p); in dump_tasks() [all …]
|
D | process_vm_access.c | 82 struct task_struct *task, in process_vm_rw_single_vec() argument 110 pages = __get_user_pages_unlocked(task, mm, pa, pages, in process_vm_rw_single_vec() 154 struct task_struct *task; in process_vm_rw_core() local 196 task = find_task_by_vpid(pid); in process_vm_rw_core() 197 if (task) in process_vm_rw_core() 198 get_task_struct(task); in process_vm_rw_core() 200 if (!task) { in process_vm_rw_core() 205 mm = mm_access(task, PTRACE_MODE_ATTACH_REALCREDS); in process_vm_rw_core() 220 iter, process_pages, mm, task, vm_write); in process_vm_rw_core() 234 put_task_struct(task); in process_vm_rw_core()
|
D | mempolicy.c | 1373 struct task_struct *task; in SYSCALL_DEFINE4() local 1396 task = pid ? find_task_by_vpid(pid) : current; in SYSCALL_DEFINE4() 1397 if (!task) { in SYSCALL_DEFINE4() 1402 get_task_struct(task); in SYSCALL_DEFINE4() 1412 tcred = __task_cred(task); in SYSCALL_DEFINE4() 1422 task_nodes = cpuset_mems_allowed(task); in SYSCALL_DEFINE4() 1434 err = security_task_movememory(task); in SYSCALL_DEFINE4() 1438 mm = get_task_mm(task); in SYSCALL_DEFINE4() 1439 put_task_struct(task); in SYSCALL_DEFINE4() 1456 put_task_struct(task); in SYSCALL_DEFINE4() [all …]
|
D | migrate.c | 1667 struct task_struct *task; in SYSCALL_DEFINE6() local 1681 task = pid ? find_task_by_vpid(pid) : current; in SYSCALL_DEFINE6() 1682 if (!task) { in SYSCALL_DEFINE6() 1686 get_task_struct(task); in SYSCALL_DEFINE6() 1692 if (!ptrace_may_access(task, PTRACE_MODE_READ_REALCREDS)) { in SYSCALL_DEFINE6() 1699 err = security_task_movememory(task); in SYSCALL_DEFINE6() 1703 task_nodes = cpuset_mems_allowed(task); in SYSCALL_DEFINE6() 1704 mm = get_task_mm(task); in SYSCALL_DEFINE6() 1705 put_task_struct(task); in SYSCALL_DEFINE6() 1720 put_task_struct(task); in SYSCALL_DEFINE6()
|
D | util.c | 630 int get_cmdline(struct task_struct *task, char *buffer, int buflen) in get_cmdline() argument 634 struct mm_struct *mm = get_task_mm(task); in get_cmdline() 653 res = access_process_vm(task, arg_start, buffer, len, FOLL_FORCE); in get_cmdline() 667 res += access_process_vm(task, env_start, in get_cmdline()
|
D | hugetlb_cgroup.c | 43 struct hugetlb_cgroup *hugetlb_cgroup_from_task(struct task_struct *task) in hugetlb_cgroup_from_task() argument 45 return hugetlb_cgroup_from_css(task_css(task, hugetlb_cgrp_id)); in hugetlb_cgroup_from_task()
|
D | memory.c | 155 struct task_struct *task = current; in add_mm_counter_fast() local 157 if (likely(task->mm == mm)) in add_mm_counter_fast() 158 task->rss_stat.count[member] += val; in add_mm_counter_fast() 167 static void check_sync_rss_stat(struct task_struct *task) in check_sync_rss_stat() argument 169 if (unlikely(task != current)) in check_sync_rss_stat() 171 if (unlikely(task->rss_stat.events++ > TASK_RSS_EVENTS_THRESH)) in check_sync_rss_stat() 172 sync_mm_rss(task->mm); in check_sync_rss_stat() 179 static void check_sync_rss_stat(struct task_struct *task) in check_sync_rss_stat() argument
|
D | memcontrol.c | 948 struct task_struct *task; in mem_cgroup_scan_tasks() local 951 while (!ret && (task = css_task_iter_next(&it))) in mem_cgroup_scan_tasks() 952 ret = fn(task, arg); in mem_cgroup_scan_tasks() 1042 bool task_in_mem_cgroup(struct task_struct *task, struct mem_cgroup *memcg) in task_in_mem_cgroup() argument 1048 p = find_lock_task_mm(task); in task_in_mem_cgroup() 1059 task_memcg = mem_cgroup_from_task(task); in task_in_mem_cgroup()
|
/mm/kasan/ |
D | kasan.c | 76 static void __kasan_unpoison_stack(struct task_struct *task, const void *sp) in __kasan_unpoison_stack() argument 78 void *base = task_stack_page(task); in __kasan_unpoison_stack() 85 void kasan_unpoison_task_stack(struct task_struct *task) in kasan_unpoison_task_stack() argument 87 __kasan_unpoison_stack(task, task_stack_page(task) + THREAD_SIZE); in kasan_unpoison_task_stack()
|