Lines Matching refs:oomadj
327 int oomadj; member
481 int adjslot = ADJTOSLOT(procp->oomadj); in proc_slot()
565 if (params.oomadj < OOM_SCORE_ADJ_MIN || in cmd_procprio()
566 params.oomadj > OOM_SCORE_ADJ_MAX) { in cmd_procprio()
567 ALOGE("Invalid PROCPRIO oomadj argument %d", params.oomadj); in cmd_procprio()
575 snprintf(val, sizeof(val), "%d", params.oomadj); in cmd_procprio()
588 if (params.oomadj >= 900) { in cmd_procprio()
590 } else if (params.oomadj >= 800) { in cmd_procprio()
592 } else if (params.oomadj >= 700) { in cmd_procprio()
594 } else if (params.oomadj >= 600) { in cmd_procprio()
596 params.oomadj = 200; in cmd_procprio()
598 } else if (params.oomadj >= 500) { in cmd_procprio()
600 } else if (params.oomadj >= 400) { in cmd_procprio()
602 } else if (params.oomadj >= 300) { in cmd_procprio()
604 } else if (params.oomadj >= 200) { in cmd_procprio()
606 } else if (params.oomadj >= 100) { in cmd_procprio()
608 } else if (params.oomadj >= 0) { in cmd_procprio()
625 is_system_server = (params.oomadj == SYSTEM_ADJ && in cmd_procprio()
641 procp->oomadj = params.oomadj; in cmd_procprio()
645 procp->oomadj = params.oomadj; in cmd_procprio()
690 static void inc_killcnt(int oomadj) { in inc_killcnt() argument
691 int slot = ADJTOSLOT(oomadj); in inc_killcnt()
1267 static struct proc *proc_adj_lru(int oomadj) { in proc_adj_lru() argument
1268 return (struct proc *)adjslot_tail(&procadjslot_list[ADJTOSLOT(oomadj)]); in proc_adj_lru()
1271 static struct proc *proc_get_heaviest(int oomadj) { in proc_get_heaviest() argument
1272 struct adjslot_list *head = &procadjslot_list[ADJTOSLOT(oomadj)]; in proc_get_heaviest()
1375 inc_killcnt(procp->oomadj); in kill_one_process()
1376 ALOGE("Kill '%s' (%d), uid %d, oom_adj %d to free %ldkB", taskname, pid, uid, procp->oomadj, in kill_one_process()
1390 procp->oomadj, mem_st.pgfault, mem_st.pgmajfault, mem_st.rss_in_bytes, in kill_one_process()
1394 stats_write_lmk_kill_occurred(log_ctx, LMK_KILL_OCCURRED, uid, taskname, procp->oomadj, in kill_one_process()