perf inject: Remove static variables
authorArnaldo Carvalho de Melo <[email protected]>
Sun, 30 Sep 2012 22:54:10 +0000 (19:54 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 2 Oct 2012 21:36:27 +0000 (18:36 -0300)
commit5ded57ac1bdb99b716c1da96eb8b5d387f5eb676
treeaa40671b77f51a20f95fb77a5c36059b61c8b4ef
parent5852a445a00f346302411f50aa168e422c7e7ab2
perf inject: Remove static variables

We want to reduce the impact that each of the builtins has on perf as a
whole, so use the superclassing of perf_tool mechanizm to move its
config knobs to the stack, so that only if we use that tool, its impact
will be felt.

In this case is more about consistency, as the impact of this tool is
minimal.

Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/builtin-inject.c