Received: from eggs.gnu.org ([2001:4830:134:3::10]:60863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bksQK-0007Gy-8F for qemu-devel@nongnu.org; Fri, 16 Sep 2016 08:39:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bksQG-0000Y7-4f for qemu-devel@nongnu.org; Fri, 16 Sep 2016 08:39:19 -0400 From: Laurent Vivier Date: Fri, 16 Sep 2016 14:39:06 +0200 Message-Id: <1474029551-17739-1-git-send-email-lvivier@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/5] spapr: convert SPAPR devices to trace framework List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: david@gibson.dropbear.id.au Cc: eblake@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, 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