]> git.baikalelectronics.ru Git - kernel.git/commit
perf report: Fix -T/--threads option to work again
authorNamhyung Kim <namhyung@kernel.org>
Wed, 29 Apr 2015 12:08:48 +0000 (21:08 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 1 May 2015 13:13:30 +0000 (10:13 -0300)
commit4776166562db41aac749393a584c7221587107bb
tree02c5ec00de0646a0a34c95e5fadbe9c8bb5dd782
parent59efbb1883069a8d0cef082ea36e83e5e880bd1c
perf report: Fix -T/--threads option to work again

The commit 437213649723 ("perf tools: Consolidate management of default
sort orders") changed default value of the 'sort_order' variable to NULL
indicating that users don't set any sort keys on the command line.

However it missed to update a check in perf_evlist__tty_browse_hists()
so that 'perf report -T' cannot show the per-thread values after the
normal output.  This patch fixes it to work again.

Note that the -T option only works on --stdio and neither --sort nor
--parent option was given.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1430309328-28317-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c