From: Robert Richter Date: Wed, 30 Nov 2011 15:25:06 +0000 (+0100) Subject: perf tools: Continue processing header on unknown features X-Git-Tag: next-20111219~24^2^2~18 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9fc382dc3129a86804b6ab98f63c157b23f57200;p=karo-tx-linux.git 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. Signed-off-by: Robert Richter --- diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 9272f3a20cac..47a782676843 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -1105,7 +1105,7 @@ static int perf_file_section__fprintf_info(struct perf_file_section *section, } if (feat < HEADER_TRACE_INFO || feat >= HEADER_LAST_FEATURE) { pr_warning("unknown feature %d\n", feat); - return -1; + return 0; } if (!feat_ops[feat].print) return 0;