From 978bb5175587daa7fa5d59b7b23039c77b3f4dc6 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Thu, 27 Dec 2012 18:11:45 +0900 Subject: [PATCH] --- yaml --- r: 349959 b: refs/heads/master c: 6f38cf25a6af5b21da1d52a94d9f56f5af2a215b h: refs/heads/master i: 349957: 17700c774667f729aaabb93af0b026be0511f288 349955: 0e65465aab5d2200658395e275b5ba4a26d2691a 349951: fdb8f768ba40cd6df3532f503a27b41963626c2e v: v3 --- [refs] | 2 +- trunk/tools/perf/util/sort.c | 26 ++------------------------ 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/[refs] b/[refs] index cd6ed59e59e7..6e6ef0711738 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cb993744554b0a5bd5c46239544cec9fd252a106 +refs/heads/master: 6f38cf25a6af5b21da1d52a94d9f56f5af2a215b diff --git a/trunk/tools/perf/util/sort.c b/trunk/tools/perf/util/sort.c index a36051b34901..39b1ab0967f4 100644 --- a/trunk/tools/perf/util/sort.c +++ b/trunk/tools/perf/util/sort.c @@ -526,30 +526,8 @@ int sort_dimension__add(const char *tok) if (sd->entry->se_collapse) sort__need_collapse = 1; - if (list_empty(&hist_entry__sort_list)) { - if (!strcmp(sd->name, "pid")) - sort__first_dimension = SORT_PID; - else if (!strcmp(sd->name, "comm")) - sort__first_dimension = SORT_COMM; - else if (!strcmp(sd->name, "dso")) - sort__first_dimension = SORT_DSO; - else if (!strcmp(sd->name, "symbol")) - sort__first_dimension = SORT_SYM; - else if (!strcmp(sd->name, "parent")) - sort__first_dimension = SORT_PARENT; - else if (!strcmp(sd->name, "cpu")) - sort__first_dimension = SORT_CPU; - else if (!strcmp(sd->name, "symbol_from")) - sort__first_dimension = SORT_SYM_FROM; - else if (!strcmp(sd->name, "symbol_to")) - sort__first_dimension = SORT_SYM_TO; - else if (!strcmp(sd->name, "dso_from")) - sort__first_dimension = SORT_DSO_FROM; - else if (!strcmp(sd->name, "dso_to")) - sort__first_dimension = SORT_DSO_TO; - else if (!strcmp(sd->name, "mispredict")) - sort__first_dimension = SORT_MISPREDICT; - } + if (list_empty(&hist_entry__sort_list)) + sort__first_dimension = i; list_add_tail(&sd->entry->list, &hist_entry__sort_list); sd->taken = 1;