perf tools: Factor out feature op to process header sections
authorRobert Richter <robert.richter@amd.com>
Fri, 10 Feb 2012 14:41:56 +0000 (15:41 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Feb 2012 01:33:36 +0000 (23:33 -0200)
commitf1c67db7e351bf9fd328e368ba045cbeca11d513
treef5992c509c655873da19c995b740ce89b60a216f
parent08d95bd256277f914e525aeb292da52f15173e7d
perf tools: Factor out feature op to process header sections

There is individual code for each feature to process header sections.

Adding a function pointer .process to struct feature_ops for keeping the
implementation in separate functions. Code to process header sections is
now a generic function.

Cc: Ingo Molnar <mingo@elte.hu>
Link: http://lkml.kernel.org/r/1328884916-5901-2-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>
tools/perf/util/header.c