提交 f7a8a133 编写于 作者: R Robert Richter 提交者: Arnaldo Carvalho de Melo

perf tools: Continue processing header on unknown features

A feature may be unknown if perf.data is created and parsed on different
perf tool versions. This should not stop the header to be processed,
instead continue processing it.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1323248577-11268-2-git-send-email-robert.richter@amd.comSigned-off-by: NRobert Richter <robert.richter@amd.com>
Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 8cdfa78a
...@@ -1109,7 +1109,7 @@ static int perf_file_section__fprintf_info(struct perf_file_section *section, ...@@ -1109,7 +1109,7 @@ static int perf_file_section__fprintf_info(struct perf_file_section *section,
} }
if (feat < HEADER_TRACE_INFO || feat >= HEADER_LAST_FEATURE) { if (feat < HEADER_TRACE_INFO || feat >= HEADER_LAST_FEATURE) {
pr_warning("unknown feature %d\n", feat); pr_warning("unknown feature %d\n", feat);
return -1; return 0;
} }
if (!feat_ops[feat].print) if (!feat_ops[feat].print)
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册