perf, tools, stat: Quieten failed to read counter message
PATCH 1/1 perf, tools, stat: Quieten failed to read counter message
From: Andi Kleen <[email protected]>
Since 3b3eb0445 running perf stat on a system without backend-stalled-cycles spits out ugly warnings by default. Since that is quite common, make the message a debug message only. We know
anyways that the counter wasn't read by the normal <unsupported> output.
Signed-off-by Andi Kleen <[email protected]>
--- tools/perf/builtin-stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/builtin-stat.c +1 -1
@@ -232,7 +232,7 @@ static void read_counters(bool close_counters)evlist__for_each (evsel_list, counter) {if (read_counter (counter)) -pr_warning ("failed to read counter %s\n" , counter->name); +pr_debug ("failed to read counter %s\n" , counter->name);if (perf_stat_process_counter (&stat_config, counter))pr_warning ("failed to process counter %s\n" , counter->name);
Signature · 1 line
2.4.3