From: David Gibson <david@gibson.dropbear.id.au>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/3] grackle: convert to trace-events
Date: Sat, 27 Jan 2018 17:26:16 +1100 [thread overview]
Message-ID: <20180127062616.GD2099@umbus> (raw)
In-Reply-To: <20180126092029.20737-2-mark.cave-ayland@ilande.co.uk>
[-- Attachment #1: Type: text/plain, Size: 2022 bytes --]
On Fri, Jan 26, 2018 at 09:20:27AM +0000, Mark Cave-Ayland wrote:
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Applied to ppc-for-2.12.
> ---
> hw/pci-host/grackle.c | 13 ++-----------
> hw/pci-host/trace-events | 3 +++
> 2 files changed, 5 insertions(+), 11 deletions(-)
>
> diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c
> index 3caf1ccb37..033588b7d2 100644
> --- a/hw/pci-host/grackle.c
> +++ b/hw/pci-host/grackle.c
> @@ -27,16 +27,7 @@
> #include "hw/pci/pci_host.h"
> #include "hw/ppc/mac.h"
> #include "hw/pci/pci.h"
> -
> -/* debug Grackle */
> -//#define DEBUG_GRACKLE
> -
> -#ifdef DEBUG_GRACKLE
> -#define GRACKLE_DPRINTF(fmt, ...) \
> - do { printf("GRACKLE: " fmt , ## __VA_ARGS__); } while (0)
> -#else
> -#define GRACKLE_DPRINTF(fmt, ...)
> -#endif
> +#include "trace.h"
>
> #define GRACKLE_PCI_HOST_BRIDGE(obj) \
> OBJECT_CHECK(GrackleState, (obj), TYPE_GRACKLE_PCI_HOST_BRIDGE)
> @@ -58,7 +49,7 @@ static void pci_grackle_set_irq(void *opaque, int irq_num, int level)
> {
> qemu_irq *pic = opaque;
>
> - GRACKLE_DPRINTF("set_irq num %d level %d\n", irq_num, level);
> + trace_grackle_set_irq(irq_num, level);
> qemu_set_irq(pic[irq_num + 0x15], level);
> }
>
> diff --git a/hw/pci-host/trace-events b/hw/pci-host/trace-events
> index 32dfc84692..5b8fcc228b 100644
> --- a/hw/pci-host/trace-events
> +++ b/hw/pci-host/trace-events
> @@ -1,5 +1,8 @@
> # See docs/devel/tracing.txt for syntax documentation.
>
> +# hw/pci-host/grackle.c
> +grackle_set_irq(int irq_num, int level) "set_irq num %d level %d"
> +
> # hw/pci-host/sabre.c
> sabre_set_request(int irq_num) "request irq %d"
> sabre_clear_request(int irq_num) "clear request irq %d"
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-01-27 6:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-26 9:20 [Qemu-devel] [PATCH 0/3] ppc: trivial Mac-related trace-events patches Mark Cave-Ayland
2018-01-26 9:20 ` [Qemu-devel] [PATCH 1/3] grackle: convert to trace-events Mark Cave-Ayland
2018-01-27 6:26 ` David Gibson [this message]
2018-01-26 9:20 ` [Qemu-devel] [PATCH 2/3] uninorth: " Mark Cave-Ayland
2018-01-27 6:27 ` David Gibson
2018-01-26 9:20 ` [Qemu-devel] [PATCH 3/3] input: add missing newline from trace-events Mark Cave-Ayland
2018-01-27 6:27 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180127062616.GD2099@umbus \
--to=david@gibson.dropbear.id.au \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.