tracing: handle unregistering the current tracer
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 7 Feb 2009 20:52:59 +0000 (18:52 -0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 09:56:53 +0000 (10:56 +0100)
commitb5db03c4355e568f1567758287b30a6a262d5057
treeefdeb3041099a6946e2c5104aadfb78bcdf5a76e
parent3861a17bcc0af815f684c6178bc9ec2d790c350e
tracing: handle unregistering the current tracer

Impact: simplification

Instead of requiring that plugins have the sequence:

  my_tracer_stop(my_trace_array);
  unregister_tracer(my_tracer);

it should be possible just do a:

  unregister_tracer(my_tracer);

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c