aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/header.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2011-12-07 04:02:51 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-12-23 13:57:09 -0500
commitf7a8a1336416883dc0ccd96c17c604e34de61c25 (patch)
treed4378527d2f954ed905ac16acbaa4cfb2f8b3f54 /tools/perf/util/header.c
parent8cdfa78a885d94a79205d183a611ebc4876d6f33 (diff)
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.com Signed-off-by: Robert Richter <robert.richter@amd.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r--tools/perf/util/header.c2
1 files changed, 1 insertions, 1 deletions
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,
1109 } 1109 }
1110 if (feat < HEADER_TRACE_INFO || feat >= HEADER_LAST_FEATURE) { 1110 if (feat < HEADER_TRACE_INFO || feat >= HEADER_LAST_FEATURE) {
1111 pr_warning("unknown feature %d\n", feat); 1111 pr_warning("unknown feature %d\n", feat);
1112 return -1; 1112 return 0;
1113 } 1113 }
1114 if (!feat_ops[feat].print) 1114 if (!feat_ops[feat].print)
1115 return 0; 1115 return 0;