perf tools: Librarize sample type and attr finding from headers
authorFrederic Weisbecker <fweisbec@gmail.com>
Sun, 16 Aug 2009 18:56:37 +0000 (20:56 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Aug 2009 21:06:44 +0000 (23:06 +0200)
commit0d3a5c885971de1e3124d85bfadf818abac9ba12
treeeb1a76270a7e749609ff9627838f1d9eb6571bd4
parent0f25bfc8d8b31a4ac8e4ff6cbc3911fb7092a4a7
perf tools: Librarize sample type and attr finding from headers

Librarize the sample type and attr fetching from perf data file
headers so that we can also use it from perf trace.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1250448997-30715-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-report.c
tools/perf/util/header.c
tools/perf/util/header.h