aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2011-10-18 20:34:24 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-10-19 11:12:56 -0400
commit51192de3b8df0c22d311df7299979a7618daf267 (patch)
tree2c92dce5be62feb0802def2b6733e7f828d18bc6 /tools
parent90cf1fb5c09fef77514083a64914b6b47fa0dad0 (diff)
perf script: Fix unknown feature comment
"perf script -v" emits: unknown feature 3, continuing... unknown feature 4, continuing... unknown feature 5, continuing... unknown feature 6, continuing... unknown feature 7, continuing... unknown feature 8, continuing... unknown feature 9, continuing... unknown feature 10, continuing... unknown feature 11, continuing... unknown feature 12, continuing... unknown feature 13, continuing... unknown feature 14, continuing... These are all new features added by fbe96f2. Update perf_file_section__process to know they are valid feature ids. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1318984464-20650-1-git-send-email-dsahern@gmail.com Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/header.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 2143a32638c2..3724707425ea 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -1895,6 +1895,21 @@ static int perf_file_section__process(struct perf_file_section *section,
1895 if (perf_header__read_build_ids(ph, fd, section->offset, section->size)) 1895 if (perf_header__read_build_ids(ph, fd, section->offset, section->size))
1896 pr_debug("Failed to read buildids, continuing...\n"); 1896 pr_debug("Failed to read buildids, continuing...\n");
1897 break; 1897 break;
1898
1899 case HEADER_HOSTNAME:
1900 case HEADER_OSRELEASE:
1901 case HEADER_VERSION:
1902 case HEADER_ARCH:
1903 case HEADER_NRCPUS:
1904 case HEADER_CPUDESC:
1905 case HEADER_CPUID:
1906 case HEADER_TOTAL_MEM:
1907 case HEADER_CMDLINE:
1908 case HEADER_EVENT_DESC:
1909 case HEADER_CPU_TOPOLOGY:
1910 case HEADER_NUMA_TOPOLOGY:
1911 break;
1912
1898 default: 1913 default:
1899 pr_debug("unknown feature %d, continuing...\n", feat); 1914 pr_debug("unknown feature %d, continuing...\n", feat);
1900 } 1915 }