Lines Matching full:sort
22 #include "util/sort.h"
328 char sort[128]; in get_sort_order() local
331 scnprintf(sort, sizeof(sort), "--sort=%s", mem->sort_key); in get_sort_order()
333 strcpy(sort, "--sort=mem,snoop,tlb,type"); in get_sort_order()
339 strcpy(sort, "--sort=mem,sym,dso,symbol_daddr," in get_sort_order()
342 strcpy(sort, "--sort=local_weight,mem,sym,dso,symbol_daddr," in get_sort_order()
348 strcat(sort, ",phys_daddr"); in get_sort_order()
351 strcat(sort, ",data_page_size"); in get_sort_order()
353 /* make sure it has 'type' sort key even -s option is used */ in get_sort_order()
354 if (mem->data_type && !strstr(sort, "type")) in get_sort_order()
355 strcat(sort, ",type"); in get_sort_order()
357 return strdup(sort); in get_sort_order()
478 char *sort_order_help = sort_help("sort by key(s):", SORT_MODE__MEMORY); in cmd_mem()
512 OPT_STRING('s', "sort", &mem.sort_key, "key[,key2...]", in cmd_mem()