Searched refs:proc_cmp (Results 1 – 1 of 1) sorted by relevance
105 static int (*proc_cmp)(const void *a, const void *b); variable119 proc_cmp = &proc_cpu_cmp; in top_main()155 if (!strcmp(argv[i], "cpu")) { proc_cmp = &proc_cpu_cmp; continue; } in top_main()156 if (!strcmp(argv[i], "vss")) { proc_cmp = &proc_vss_cmp; continue; } in top_main()157 if (!strcmp(argv[i], "rss")) { proc_cmp = &proc_rss_cmp; continue; } in top_main()158 if (!strcmp(argv[i], "thr")) { proc_cmp = &proc_thr_cmp; continue; } in top_main()172 if (threads && proc_cmp == &proc_thr_cmp) { in top_main()452 qsort(new_procs, num_new_procs, sizeof(struct proc_info *), proc_cmp); in print_procs()