From: Robert Richter Date: Wed, 7 Dec 2011 09:02:51 +0000 (+0100) Subject: perf tools: Continue processing header on unknown features X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7a8a1336416883dc0ccd96c17c604e34de61c25;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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. Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1323248577-11268-2-git-send-email-robert.richter@amd.com Signed-off-by: Robert Richter Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 4c48be80dcdf..428a4a2ce350 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -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) { pr_warning("unknown feature %d\n", feat); - return -1; + return 0; } if (!feat_ops[feat].print) return 0;