Searched refs:compfn (Results 1 – 3 of 3) sorted by relevance
/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() 401 qsort(li->mappings, li->mappings_count, sizeof(li->mappings[0]), compfn); in main() 478 #define create_sort(field, compfn) \ argument 480 return order * compfn( \
|
/system/extras/procrank/ |
D | procrank.c | 48 int (*compfn)(const void *a, const void *b); variable 207 compfn = &sort_by_pss; in main() 212 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; } in main() 213 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; } in main() 214 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; } in main() 215 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; } in main() 216 if (!strcmp(argv[arg], "-s")) { compfn = &sort_by_swap; continue; } in main() 304 qsort(procs, num_procs, sizeof(procs[0]), compfn); in main() 538 #define create_sort(field, compfn) \ argument 540 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()
|