diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-04-05 10:26:36 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:43:29 +0900 |
commit | 6dd048de36fea1948a77b4280fc07208f1bead3d (patch) | |
tree | 8768e05b69083e93ac0aeeb71a6736ad8f167775 /tools | |
parent | c3b9005053d061937a1239c5b37aebd1502ae257 (diff) | |
download | linux-3.10-6dd048de36fea1948a77b4280fc07208f1bead3d.tar.gz linux-3.10-6dd048de36fea1948a77b4280fc07208f1bead3d.tar.bz2 linux-3.10-6dd048de36fea1948a77b4280fc07208f1bead3d.zip |
perf sort: Cleanup sort__has_sym setting
The sort__has_sym variable is set only if a symbol-related sort key was
added. Since branch stack and memory sort dimensions are separated, it
doesn't need to be checked from common dimension.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1365125198-8334-7-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/sort.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 701ab1d8489..313a5a73011 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -938,10 +938,7 @@ int sort_dimension__add(const char *tok) return -EINVAL; } sort__has_parent = 1; - } else if (sd->entry == &sort_sym || - sd->entry == &sort_sym_from || - sd->entry == &sort_sym_to || - sd->entry == &sort_mem_daddr_sym) { + } else if (sd->entry == &sort_sym) { sort__has_sym = 1; } |