Home
last modified time | relevance | path

Searched refs:tsk (Results 1 – 11 of 11) sorted by relevance

/mm/
Doom_kill.c96 struct task_struct *tsk; in oom_cpuset_eligible() local
104 for_each_thread(start, tsk) { in oom_cpuset_eligible()
112 ret = mempolicy_in_oom_domain(tsk, mask); in oom_cpuset_eligible()
118 ret = cpuset_mems_allowed_intersects(current, tsk); in oom_cpuset_eligible()
128 static bool oom_cpuset_eligible(struct task_struct *tsk, struct oom_control *oc) in oom_cpuset_eligible() argument
574 static bool oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) in oom_reap_task_mm() argument
579 trace_skip_task_reaping(tsk->pid); in oom_reap_task_mm()
590 trace_skip_task_reaping(tsk->pid); in oom_reap_task_mm()
594 trace_start_task_reaping(tsk->pid); in oom_reap_task_mm()
602 task_pid_nr(tsk), tsk->comm, in oom_reap_task_mm()
[all …]
Dmemory-failure.c241 struct task_struct *tsk; member
253 struct task_struct *t = tk->tsk; in kill_proc()
349 static void add_to_kill(struct task_struct *tsk, struct page *p, in add_to_kill() argument
379 page_to_pfn(p), tsk->comm); in add_to_kill()
385 get_task_struct(tsk); in add_to_kill()
386 tk->tsk = tsk; in add_to_kill()
412 pfn, tk->tsk->comm, tk->tsk->pid); in kill_procs()
414 tk->tsk, PIDTYPE_PID); in kill_procs()
425 pfn, tk->tsk->comm, tk->tsk->pid); in kill_procs()
427 put_task_struct(tk->tsk); in kill_procs()
[all …]
Dhighmem.c618 struct task_struct *tsk = current; in __kmap_local_sched_out() local
623 for (i = 0; i < tsk->kmap_ctrl.idx; i++) { in __kmap_local_sched_out()
624 pte_t pteval = tsk->kmap_ctrl.pteval[i]; in __kmap_local_sched_out()
655 struct task_struct *tsk = current; in __kmap_local_sched_in() local
660 for (i = 0; i < tsk->kmap_ctrl.idx; i++) { in __kmap_local_sched_in()
661 pte_t pteval = tsk->kmap_ctrl.pteval[i]; in __kmap_local_sched_in()
682 void kmap_local_fork(struct task_struct *tsk) in kmap_local_fork() argument
684 if (WARN_ON_ONCE(tsk->kmap_ctrl.idx)) in kmap_local_fork()
685 memset(&tsk->kmap_ctrl, 0, sizeof(tsk->kmap_ctrl)); in kmap_local_fork()
Dpage-writeback.c397 struct task_struct *tsk; in domain_dirty_limits() local
431 tsk = current; in domain_dirty_limits()
432 if (rt_task(tsk)) { in domain_dirty_limits()
473 struct task_struct *tsk = current; in node_dirty_limit() local
482 if (rt_task(tsk)) in node_dirty_limit()
Dmempolicy.c366 void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new) in mpol_rebind_task() argument
368 mpol_rebind_policy(tsk->mempolicy, new); in mpol_rebind_task()
2007 bool mempolicy_in_oom_domain(struct task_struct *tsk, in mempolicy_in_oom_domain() argument
2016 task_lock(tsk); in mempolicy_in_oom_domain()
2017 mempolicy = tsk->mempolicy; in mempolicy_in_oom_domain()
2020 task_unlock(tsk); in mempolicy_in_oom_domain()
Dnommu.c1724 int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, in access_process_vm() argument
1732 mm = get_task_mm(tsk); in access_process_vm()
Dcompaction.c2992 struct task_struct *tsk = current; in kcompactd() local
2999 set_cpus_allowed_ptr(tsk, cpumask); in kcompactd()
Dvmscan.c7355 struct task_struct *tsk = current; in kswapd() local
7359 set_cpus_allowed_ptr(tsk, cpumask); in kswapd()
7373 tsk->flags |= PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD; in kswapd()
7423 tsk->flags &= ~(PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD); in kswapd()
Dmemory.c5698 int access_process_vm(struct task_struct *tsk, unsigned long addr, in access_process_vm() argument
5704 mm = get_task_mm(tsk); in access_process_vm()
Dpage_alloc.c4987 static bool oom_reserves_allowed(struct task_struct *tsk) in oom_reserves_allowed() argument
4989 if (!tsk_is_oom_victim(tsk)) in oom_reserves_allowed()
/mm/damon/
Dcore.c451 struct task_struct *tsk; in __damon_stop() local
454 tsk = ctx->kdamond; in __damon_stop()
455 if (tsk) { in __damon_stop()
456 get_task_struct(tsk); in __damon_stop()
458 kthread_stop(tsk); in __damon_stop()
459 put_task_struct(tsk); in __damon_stop()