x86, hw-branch-tracer: keep resources on stop
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 13 Mar 2009 09:48:52 +0000 (10:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 13 Mar 2009 10:57:21 +0000 (11:57 +0100)
commitba9372a8f306c4e53a5f61dcbcd6c1e4a8c2e9ac
tree665e2a61bc5830de12fe18aa04a3be0a298d6a49
parentb8e47195451c5d3f62620b2b1b5928669afd56eb
x86, hw-branch-tracer: keep resources on stop

Distinguish init/reset and start/stop:

init/reset will allocate and release bts tracing resources
stop/start will suspend and resume bts tracing

Return an error on init() if no cpu can be traced.

Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
LKML-Reference: <20090313104852.A30168@sedona.ch.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_hw_branches.c