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()
916 static void __oom_kill_process(struct task_struct *victim, const char *message) in __oom_kill_process() argument
922 p = find_lock_task_mm(victim); in __oom_kill_process()
925 message, task_pid_nr(victim), victim->comm); in __oom_kill_process()
926 put_task_struct(victim); in __oom_kill_process()
928 } else if (victim != p) { in __oom_kill_process()
930 put_task_struct(victim); in __oom_kill_process()
931 victim = p; in __oom_kill_process()
935 mm = victim->mm; in __oom_kill_process()
947 do_send_sig_info(SIGKILL, SEND_SIG_PRIV, victim, PIDTYPE_TGID); in __oom_kill_process()
948 mark_oom_victim(victim); in __oom_kill_process()
950 message, task_pid_nr(victim), victim->comm, K(mm->total_vm), in __oom_kill_process()
954 from_kuid(&init_user_ns, task_uid(victim)), in __oom_kill_process()
955 mm_pgtables_bytes(mm) >> 10, victim->signal->oom_score_adj); in __oom_kill_process()
956 task_unlock(victim); in __oom_kill_process()
971 if (same_thread_group(p, victim)) in __oom_kill_process()
977 task_pid_nr(victim), victim->comm, in __oom_kill_process()
992 queue_oom_reaper(victim); in __oom_kill_process()
995 put_task_struct(victim); in __oom_kill_process()
1015 struct task_struct *victim = oc->chosen; in oom_kill_process() local
1025 task_lock(victim); in oom_kill_process()
1026 if (task_will_free_mem(victim)) { in oom_kill_process()
1027 mark_oom_victim(victim); in oom_kill_process()
1028 queue_oom_reaper(victim); in oom_kill_process()
1029 task_unlock(victim); in oom_kill_process()
1030 put_task_struct(victim); in oom_kill_process()
1033 task_unlock(victim); in oom_kill_process()
1036 dump_header(oc, victim); in oom_kill_process()
1043 oom_group = mem_cgroup_get_oom_group(victim, oc->memcg); in oom_kill_process()
1045 __oom_kill_process(victim, message); in oom_kill_process()