/system/extras/procrank/ |
procrank.cpp | 38 int oomadj; member in struct:proc_info 55 declare_sort(oomadj); variable 218 bool oomadj = false; local 226 if (!strcmp(argv[arg], "-o")) { compfn = &sort_by_oomadj; oomadj = true; continue; } 258 procs[i].oomadj = getoomadj(pids[i]); 315 if (oomadj) { 347 if (oomadj) { 359 printf("%5s ", ""); // oomadj 378 printf("TOTAL for oomadj < %d (%6" PRIu64 "K)\n", *lmk_adj_it, *lmk_minfree_it / 1024); 383 if (oomadj) { 539 std::string oomadj; local [all...] |
/system/core/lmkd/ |
lmkd.c | 105 int oomadj; member in struct:proc 181 int adjslot = ADJTOSLOT(procp->oomadj); 240 static void cmd_procprio(int pid, int uid, int oomadj) { 245 if (oomadj < OOM_SCORE_ADJ_MIN || oomadj > OOM_SCORE_ADJ_MAX) { 246 ALOGE("Invalid PROCPRIO oomadj argument %d", oomadj); 251 snprintf(val, sizeof(val), "%d", oomadj); 267 procp->oomadj = oomadj; [all...] |
/system/extras/alloc-stress/ |
alloc-stress.cpp | 128 static void write_oomadj_to_lmkd(int oomadj) { 146 lmk_procprio_cmd[3] = htonl(oomadj);
|