trace: count number of enabled events
commit43b48cfc3e8ff745a10a6b78a55519d5cf7ec5e8
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 Oct 2015 06:06:26 +0000 (28 07:06 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 3 Feb 2016 09:19:08 +0000 (3 09:19 +0000)
tree659f921a14e9b8a6bfb03aac53b578cfc7fa7554
parentc65db7705b7926f4a084b93778e4bd5dd3990aad
trace: count number of enabled events

This lets trace_event_get_state_dynamic quickly return false.  Right
now there is hardly any benefit because there are also many assertions
and indirections, but the next patch will streamline all of this.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
trace/control-internal.h
trace/control.c