perf tools: Generalize perf_header__adds_read()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Nov 2009 18:32:43 +0000 (16:32 -0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 16 Nov 2009 21:05:50 +0000 (22:05 +0100)
commit37562eac3767c7f07bb1a1329708ff6453e47570
treebd60ab6dcdce361cef82129e06b0d51a14ff9fe0
parent8f41146aedf803856fb6477056e3960cb9ba8f9c
perf tools: Generalize perf_header__adds_read()

Renaming it to perf_header__process_sections() and passing a
callback to handle each feature.

The next changesets will introduce 'perf buildid-list' that will
handle just the HEADER_BUILD_ID table, ignoring all the other
features.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <1258396365-29217-3-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/header.c
tools/perf/util/header.h