summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/header.h
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2011-12-15 17:32:40 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-02-02 17:41:17 -0200
commit781ba9d2ed9df07dbb413fb5ee80ef7d353841c9 (patch)
tree1e3ce400e28b684a03237d5b3c5e4007e8f37566 /tools/perf/util/header.h
parent4eced2347c447c9409877368fc52478c356b4767 (diff)
downloadblackbird-obmc-linux-781ba9d2ed9df07dbb413fb5ee80ef7d353841c9.tar.gz
blackbird-obmc-linux-781ba9d2ed9df07dbb413fb5ee80ef7d353841c9.zip
perf record: Make feature initialization generic
Loop over all features to enable it instead of explicitly enabling every single feature. Reducing duplicate code and making it more robust to later changes e.g. when adding more features. Cc: Ingo Molnar <mingo@elte.hu> Link: http://lkml.kernel.org/r/1323966762-8574-3-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.h')
-rw-r--r--tools/perf/util/header.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h
index ac4ec956024e..e68f617d082f 100644
--- a/tools/perf/util/header.h
+++ b/tools/perf/util/header.h
@@ -11,6 +11,7 @@
enum {
HEADER_RESERVED = 0, /* always cleared */
+ HEADER_FIRST_FEATURE = 1,
HEADER_TRACE_INFO = 1,
HEADER_BUILD_ID,
OpenPOWER on IntegriCloud