perf report: Use ui__warning in some more places
commit00894ce9b85887caa0c16e18757004b9cc9f64cf
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Aug 2011 15:33:24 +0000 (3 12:33 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Aug 2011 15:33:24 +0000 (3 12:33 -0300)
tree0f64fd92048d0b782c7fa025625f97bb06391207
parent3e9f45a7a4179604ccbae1589de0e7165bc6fcd0
perf report: Use ui__warning in some more places

So that we get a proper warning in the TUI in cases like:

 $ perf report --stdio -g fractal,0.5,caller --sort pid
 Selected -g but no callchain data. Did you call 'perf record' without -g?
 $

The --stdio case is ok because it uses fprintf, ui__warning is needed to
figure out if --stdio or --tui is being used.

Cc: Arun Sharma <asharma@fb.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sam Liao <phyomh@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-ag9fz2wd17mbbfjsbznq1wms@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c