Searched refs:compfn (Results 1 – 3 of 3) sorted by relevance
/system/extras/procrank/ |
D | procrank.c | 48 int (*compfn)(const void *a, const void *b); variable 145 compfn = &sort_by_pss; in main() 150 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; } in main() 151 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; } in main() 152 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; } in main() 153 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; } in main() 154 if (!strcmp(argv[arg], "-s")) { compfn = &sort_by_swap; continue; } in main() 238 qsort(procs, num_procs, sizeof(procs[0]), compfn); in main() 421 #define create_sort(field, compfn) \ argument 423 return order * compfn( \
|
/system/extras/librank/ |
D | librank.c | 202 int (*compfn)(const void *a, const void *b); in main() local 228 compfn = &sort_by_pss; in main() 284 compfn = &sort_by_pss; in main() 291 compfn = &sort_by_uss; in main() 294 compfn = &sort_by_vss; in main() 297 compfn = &sort_by_rss; in main() 300 compfn = &sort_by_swap; in main() 400 qsort(li->mappings, li->mappings_count, sizeof(li->mappings[0]), compfn); in main() 477 #define create_sort(field, compfn) \ argument 479 return order * compfn( \
|
/system/extras/procmem/ |
D | procmem.c | 70 int (*compfn)(const void *a, const void *b); in main() local 84 compfn = NULL; in main() 89 if (!strcmp(argv[i], "-m")) { compfn = NULL; continue; } in main() 90 if (!strcmp(argv[i], "-p")) { compfn = &comp_pss; continue; } in main() 236 if (compfn) in main() 237 qsort(mis, num_maps, sizeof(mis[0]), compfn); in main()
|