aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAnton Vorontsov <[email protected]>2012-07-09 17:10:39 -0700
committerGreg Kroah-Hartman <[email protected]>2012-07-17 09:50:53 -0700
commitb2ad368bebc0f772613668e893fa176396e9094c (patch)
treef2c14b8eea287afdab9eb5eba59792e1048b212a /tools/perf/scripts/python/bin
parentc1743cbc8d20d208bb1d2b10598204f2d89b144c (diff)
tracing: Fix initialization failure path in tracing_set_tracer()
If tracer->init() fails, current code will leave current_tracer pointing to an unusable tracer, which at best makes 'current_tracer' report inaccurate value. Fix the issue by pointing current_tracer to nop tracer, and only update current_tracer with the new one after all the initialization succeeds. Signed-off-by: Anton Vorontsov <[email protected]> Acked-by: Steven Rostedt <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions