qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] improve tracing
@ 2017-07-21 14:31 Vladimir Sementsov-Ogievskiy
  2017-07-21 14:31 ` [Qemu-devel] [PATCH 1/2] trace: do not calculate arguments for disabled trace-points Vladimir Sementsov-Ogievskiy
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2017-07-21 14:31 UTC (permalink / raw)
  To: qemu-devel; +Cc: stefanha, dgilbert, armbru, vsementsov, den

Current trace system have a drawback: parameters of trace functions
are calculated even if corresponding tracepoint is disabled. Also, it
looks like trace function are not actually inlined by compiler (at
least for me).

Here is a fix proposal: move from function call to macros. Patch 02
is an example, of how to reduce extra calculations with help of
patch 01.

Vladimir Sementsov-Ogievskiy (2):
  trace: do not calculate arguments for disabled trace-points
  monitor: improve tracing in handle_qmp_command

 monitor.c                     |  6 +++---
 scripts/tracetool/format/h.py | 13 +++++++------
 2 files changed, 10 insertions(+), 9 deletions(-)

-- 
2.11.1

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

end of thread, other threads:[~2017-07-25 13:52 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-21 14:31 [Qemu-devel] [PATCH 0/2] improve tracing Vladimir Sementsov-Ogievskiy
2017-07-21 14:31 ` [Qemu-devel] [PATCH 1/2] trace: do not calculate arguments for disabled trace-points Vladimir Sementsov-Ogievskiy
2017-07-21 14:31 ` [Qemu-devel] [PATCH 2/2] monitor: improve tracing in handle_qmp_command Vladimir Sementsov-Ogievskiy
2017-07-24 11:39   ` Stefan Hajnoczi
2017-07-21 17:04 ` [Qemu-devel] [PATCH 0/2] improve tracing Lluís Vilanova
2017-07-24  8:55   ` Vladimir Sementsov-Ogievskiy
2017-07-24 11:07     ` Lluís Vilanova
2017-07-24 11:16       ` Denis V. Lunev
2017-07-24 11:32   ` Stefan Hajnoczi
2017-07-24 11:34 ` Stefan Hajnoczi
2017-07-24 12:17   ` Denis V. Lunev
2017-07-24 14:43     ` Lluís Vilanova
2017-07-24 14:55       ` Denis V. Lunev
2017-07-24 16:32         ` Lluís Vilanova
2017-07-25 13:52           ` Stefan Hajnoczi
2017-07-24 16:24     ` Philippe Mathieu-Daudé

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).