Lines Matching refs:victim
440 static void dump_oom_summary(struct oom_control *oc, struct task_struct *victim) in dump_oom_summary() argument
447 mem_cgroup_print_oom_context(oc->memcg, victim); in dump_oom_summary()
448 pr_cont(",task=%s,pid=%d,uid=%d\n", victim->comm, victim->pid, in dump_oom_summary()
449 from_kuid(&init_user_ns, task_uid(victim))); in dump_oom_summary()
856 static void __oom_kill_process(struct task_struct *victim, const char *message) in __oom_kill_process() argument
862 p = find_lock_task_mm(victim); in __oom_kill_process()
864 put_task_struct(victim); in __oom_kill_process()
866 } else if (victim != p) { in __oom_kill_process()
868 put_task_struct(victim); in __oom_kill_process()
869 victim = p; in __oom_kill_process()
873 mm = victim->mm; in __oom_kill_process()
885 do_send_sig_info(SIGKILL, SEND_SIG_PRIV, victim, PIDTYPE_TGID); in __oom_kill_process()
886 mark_oom_victim(victim); in __oom_kill_process()
888 message, task_pid_nr(victim), victim->comm, K(mm->total_vm), in __oom_kill_process()
892 from_kuid(&init_user_ns, task_uid(victim)), in __oom_kill_process()
893 mm_pgtables_bytes(mm) >> 10, victim->signal->oom_score_adj); in __oom_kill_process()
894 task_unlock(victim); in __oom_kill_process()
909 if (same_thread_group(p, victim)) in __oom_kill_process()
915 task_pid_nr(victim), victim->comm, in __oom_kill_process()
930 wake_oom_reaper(victim); in __oom_kill_process()
933 put_task_struct(victim); in __oom_kill_process()
953 struct task_struct *victim = oc->chosen; in oom_kill_process() local
963 task_lock(victim); in oom_kill_process()
964 if (task_will_free_mem(victim)) { in oom_kill_process()
965 mark_oom_victim(victim); in oom_kill_process()
966 wake_oom_reaper(victim); in oom_kill_process()
967 task_unlock(victim); in oom_kill_process()
968 put_task_struct(victim); in oom_kill_process()
971 task_unlock(victim); in oom_kill_process()
974 dump_header(oc, victim); in oom_kill_process()
981 oom_group = mem_cgroup_get_oom_group(victim, oc->memcg); in oom_kill_process()
983 __oom_kill_process(victim, message); in oom_kill_process()