]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Allow sort dimensions to be registered more than once
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 29 Jun 2011 21:08:14 +0000 (23:08 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 29 Jun 2011 22:26:41 +0000 (00:26 +0200)
commit0e7a4f5590c2acae6b5480e9049ac256f566eeaa
tree7d4025ed1c68162f118bc29005ac76f0e9ea8dd8
parentc18baed8eecff494a8c194a4558a7c474bd1ba77
perf tools: Allow sort dimensions to be registered more than once

So that the parent sort dimension can be registered twice: once
if we add it as an explicit sort dimension (-s parent) and twice
if we request a parent filter (-p foo).

We'll have only one parent sort dimension in the end but this
allows to override the default parent filter with we gave in "-p"
option. The goal of this is to prepare to allow the use of
"-s parent" and "-p foo" at the same time, ie: sort by filtered
parent.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Sam Liao <phyomh@gmail.com>
tools/perf/util/sort.c