]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
perf tools: Continue processing header on unknown features
authorRobert Richter <robert.richter@amd.com>
Wed, 30 Nov 2011 15:25:06 +0000 (16:25 +0100)
committerRobert Richter <robert.richter@amd.com>
Thu, 15 Dec 2011 13:28:01 +0000 (14:28 +0100)
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 <robert.richter@amd.com>
tools/perf/util/header.c

index 9272f3a20cacff7677b167681871b37f8a2b6859..47a7826768434ae86443006daeaa85da231ba7d8 100644 (file)
@@ -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;