Home
last modified time | relevance | path

Searched refs:oomadj (Results 1 – 8 of 8) sorted by relevance

/system/memory/lmkd/tests/
Dlmkd_test.cpp187 int oomadj; member
243 data->oomadj = OOM_ADJ_MAX; in runMemStressTest()
244 while (data->oomadj >= OOM_ADJ_MIN) { in runMemStressTest()
254 params.oomadj = data->oomadj; in runMemStressTest()
269 data->oomadj -= OOM_ADJ_STEP; in runMemStressTest()
275 << data->oomadj; in runMemStressTest()
Dlmkd_tests.cpp100 void SetupChild(pid_t pid, int oomadj) { in SetupChild() argument
105 params.oomadj = oomadj; in SetupChild()
/system/memory/lmkd/
Dlmkd.cpp512 int oomadj; member
925 int adjslot = ADJTOSLOT(procp->oomadj); in proc_slot()
1127 if (params.oomadj < OOM_SCORE_ADJ_MIN || in cmd_procprio()
1128 params.oomadj > OOM_SCORE_ADJ_MAX) { in cmd_procprio()
1129 ALOGE("Invalid PROCPRIO oomadj argument %d", params.oomadj); in cmd_procprio()
1151 snprintf(val, sizeof(val), "%d", params.oomadj); in cmd_procprio()
1166 if (params.oomadj >= 900) { in cmd_procprio()
1168 } else if (params.oomadj >= 800) { in cmd_procprio()
1170 } else if (params.oomadj >= 700) { in cmd_procprio()
1172 } else if (params.oomadj >= 600) { in cmd_procprio()
[all …]
/system/memory/lmkd/include/
Dlmkd.h107 int oomadj; member
119 params->oomadj = ntohl(packet[3]); in lmkd_pack_get_procprio()
132 packet[3] = htonl(params->oomadj); in lmkd_pack_set_procprio()
/system/memory/libmeminfo/libsmapinfo/include/
Dprocessrecord.h45 int32_t oomadj() const { return oomadj_; } in oomadj() function
/system/extras/alloc-stress/
Dalloc-stress.cpp139 static void write_oomadj_to_lmkd(int oomadj) { in write_oomadj_to_lmkd() argument
156 lmk_procprio_cmd[3] = htonl(oomadj); in write_oomadj_to_lmkd()
/system/core/init/
Dlmkd_service.cpp50 params.oomadj = oom_score_adjust; in RegisterProcess()
/system/memory/libmeminfo/libsmapinfo/
Dsmapinfo.cpp108 proc_sort = [](ProcessRecord& a, ProcessRecord& b) { return a.oomadj() > b.oomadj(); }; in select_sort()
239 out << StringPrintf("%5d ", proc.oomadj()); in print_processrecord()
419 oomadj_ = proc.oomadj(); in LibProcRecord()
429 int32_t oomadj() const { return oomadj_; } in oomadj() function
482 proc_sort = [](LibProcRecord& a, LibProcRecord& b) { return a.oomadj() > b.oomadj(); }; in select_sort()
641 out << std::setw(7) << p.oomadj() << " "; in print_proc_as_raw()
663 out << ",\"Oom\":" << p.oomadj(); in print_proc_as_json()
685 out << "," << p.oomadj(); in print_proc_as_csv()