qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/5] spapr: convert SPAPR devices to trace framework
@ 2016-09-16 12:39 Laurent Vivier
  2016-09-16 12:39 ` [Qemu-devel] [PATCH v2 1/5] spapr_drc: convert to trace framework instead of DPRINTF Laurent Vivier
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Laurent Vivier @ 2016-09-16 12:39 UTC (permalink / raw)
  To: david; +Cc: eblake, qemu-ppc, qemu-devel, Laurent Vivier

Define and use trace_spapr_XXX functions instead of
DPRINTF to trace some SPAPR devices: spapr_vio, spapr_drc, spapr_rtas,
spapr_llan, spapr_vscsi.

This allows to enable dynamically (instead of recompiling the source)
the traces for these devices. Messages are close as possible as
messages used by DPRINTF. Sometime, I've removed some text to
avoid redundancy between information given by the tracing function name
and the text displayed. I've also updated print format to use
the good conversion specifier ('u' instead of 'd' when the type is unsigned,
PRIx32 instead of 'x' when the type is uint32_t or int32_t, ...)

v2:
- fix spapr_vscsi with "ust" backend (limited number of arguments)
- Remove blank line after the comment line in trace-events files
- add Eric's R-b

David, you can take only patch 5/5, all the other patches are like they
are in your branch ppc-for-2.8.

Laurent Vivier (5):
  spapr_drc: convert to trace framework instead of DPRINTF
  spapr_rtas: convert to trace framework instead of DPRINTF
  spapr_vio: convert to trace framework instead of DPRINTF
  spapr_llan: convert to trace framework instead of DPRINTF
  spapr_vscsi: convert to trace framework instead of DPRINTF

 hw/net/spapr_llan.c   | 61 +++++++++++++++--------------------
 hw/net/trace-events   | 16 ++++++++++
 hw/ppc/spapr_drc.c    | 54 ++++++++++++-------------------
 hw/ppc/spapr_rtas.c   | 30 +++++-------------
 hw/ppc/spapr_vio.c    | 17 ++--------
 hw/ppc/trace-events   | 33 +++++++++++++++++++
 hw/scsi/spapr_vscsi.c | 88 +++++++++++++++++++++------------------------------
 hw/scsi/trace-events  | 27 ++++++++++++++++
 8 files changed, 168 insertions(+), 158 deletions(-)

-- 
2.5.5

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

end of thread, other threads:[~2016-09-19  5:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-16 12:39 [Qemu-devel] [PATCH v2 0/5] spapr: convert SPAPR devices to trace framework Laurent Vivier
2016-09-16 12:39 ` [Qemu-devel] [PATCH v2 1/5] spapr_drc: convert to trace framework instead of DPRINTF Laurent Vivier
2016-09-16 12:39 ` [Qemu-devel] [PATCH v2 2/5] spapr_rtas: " Laurent Vivier
2016-09-16 12:39 ` [Qemu-devel] [PATCH v2 3/5] spapr_vio: " Laurent Vivier
2016-09-16 12:39 ` [Qemu-devel] [PATCH v2 4/5] spapr_llan: " Laurent Vivier
2016-09-16 12:39 ` [Qemu-devel] [PATCH v2 5/5] spapr_vscsi: " Laurent Vivier
2016-09-19  5:00 ` [Qemu-devel] [PATCH v2 0/5] spapr: convert SPAPR devices to trace framework David Gibson

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