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
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,
> +
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
3 matches
Mail list logo