Lines Matching defs:entries
377 memorystatus_priority_entry_t *entries = NULL;
381 entries = get_priority_list(&size);
382 if (!entries) {
388 if (entries[i].pid == pid) {
391 *priority = entries[i].priority;
392 *user_data = entries[i].user_data;
394 *limit_mb = entries[i].limit;
397 res = get_ledger_info(entries[i].pid, NULL, &limit);
411 if (entries)
412 free(entries);
450 memorystatus_priority_entry_t *entries = NULL;
456 entries = get_priority_list(&size);
457 if (!entries) {
458 printf("Can't get entries!\n");
468 if (entries[i].pid <= 1) {
469 printf("\t\tBad process (%d) in list!\n", entries[i].pid);
474 dirty_ret = proc_get_dirty(entries[i].pid, &dirty_flags);
481 if ((entries[i].priority == JETSAM_PRIORITY_IDLE) && (dirty_flags & PROC_DIRTY_IS_DIRTY)) {
482 printf("\t\tProcess %d at idle priority when dirty (priority %d, flags 0x%x)!\n", entries[i].pid, entries[i].priority, dirty_flags);
486 if ((entries[i].priority > JETSAM_PRIORITY_IDLE_DEFERRED) && !(dirty_flags & PROC_DIRTY_IS_DIRTY)) {
487 printf("\t\tProcess %d not at non-idle priority when clean(priority %d, flags 0x%x)\n", entries[i].pid, entries[i].priority, dirty_flags);
496 if (entries)
497 free(entries);
706 /* Grab ledger entries */