[PATCH 09/20] perf tools: Consolidate management of default sort orders

2014-05-18 Thread Namhyung Kim
The perf uses different default sort orders for different use-cases, and this was scattered throughout the code. Add get_default_sort_ order() function to handle this and change initial value of sort_order to NULL to distinguish it from user-given one. Cc: Stephane Eranian Signed-off-by: Namhyun

Re: [PATCH 09/20] perf tools: Consolidate management of default sort orders

2014-05-15 Thread Jiri Olsa
On Mon, May 12, 2014 at 03:28:42PM +0900, Namhyung Kim wrote: SNIP > > +static const char *get_default_sort_order(void) > +{ > + const char *default_sort_orders[] = { > + default_sort_order, > + default_branch_sort_order, > + default_mem_sort_order, > +

[PATCH 09/20] perf tools: Consolidate management of default sort orders

2014-05-11 Thread Namhyung Kim
The perf uses different default sort orders for different use-cases, and this was scattered throughout the code. Add get_default_sort_ order() function to handle this and change initial value of sort_order to NULL to distinguish it from user-given one. Cc: Stephane Eranian Signed-off-by: Namhyun