perf tools: Warn while running perf trace without sample
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 17 Aug 2009 21:07:49 +0000 (23:07 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 17 Aug 2009 22:00:18 +0000 (00:00 +0200)
commit4bf2364a951d3c043e132e4451d90c7bc74dee83
tree601f1b7147a0f498d704b464a4d43add530ae8b4
parent6ede59c412579303a25c11f93d4d262e100fc7e6
perf tools: Warn while running perf trace without sample

When a user runs perf trace using an input with logged
counters without PERF_SAMPLE_RAW attribute, warn by giving a
nice tip.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1250543271-8383-2-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-trace.c