From 9fc382dc3129a86804b6ab98f63c157b23f57200 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Wed, 30 Nov 2011 16:25:06 +0100 Subject: [PATCH] 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 --- tools/perf/util/header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5