qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for-2.5 0/2] trace: decrease overhead of simpletrace and stderr backends
@ 2015-10-28  6:06 Paolo Bonzini
  2015-10-28  6:06 ` [Qemu-devel] [PATCH 1/2] trace: count number of enabled events Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paolo Bonzini @ 2015-10-28  6:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: stefanha

This patch series makes it faster for simpletrace and stderr backends
to discard disabled events.  This is done in two ways: patch 1 makes
the common case of no enabled events faster; patch 2 makes the other
case less heavy on the data cache by packing the "tracepoint enabled"
flag and avoiding useless pointer chasing.

This should decrease the impact of changing the default tracing backend
to stderr aka log, which Peter suggested could be a problem.

Paolo

Paolo Bonzini (2):
  trace: count number of enabled events
  trace: track enabled events in a separate array

 scripts/tracetool/format/events_c.py |  2 +-
 trace/control-internal.h             | 15 ++++++++++++---
 trace/control.c                      |  3 +++
 trace/control.h                      |  2 +-
 trace/event-internal.h               |  2 --
 5 files changed, 17 insertions(+), 7 deletions(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-28 14:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28  6:06 [Qemu-devel] [PATCH for-2.5 0/2] trace: decrease overhead of simpletrace and stderr backends Paolo Bonzini
2015-10-28  6:06 ` [Qemu-devel] [PATCH 1/2] trace: count number of enabled events Paolo Bonzini
2015-10-28  6:06 ` [Qemu-devel] [PATCH 2/2] trace: track enabled events in a separate array Paolo Bonzini
2015-10-28 14:44 ` [Qemu-devel] [PATCH for-2.5 0/2] trace: decrease overhead of simpletrace and stderr backends Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).