From: Richard Henderson <richard.henderson@linaro.org>
To: Don Porter <porter@cs.unc.edu>, qemu-devel@nongnu.org
Cc: Austin Clements <aclements@csail.mit.edu>,
Geoffrey Thomas <geofft@ldpreload.com>
Subject: Re: [PATCH 1/1] e1000: Get debug flags from an environment variable
Date: Fri, 29 Mar 2024 07:46:22 -1000 [thread overview]
Message-ID: <7e66f00d-cc69-458d-be56-266689757f68@linaro.org> (raw)
In-Reply-To: <20240329150450.2843758-2-porter@cs.unc.edu>
On 3/29/24 05:04, Don Porter wrote:
> From: Austin Clements <aclements@csail.mit.edu>
>
> The E1000 debug messages are very useful for developing drivers, so
> this introduces an E1000_DEBUG environment variable that lets the
> debug flags be set without recompiling QEMU.
>
> Signed-off-by: Austin Clements <aclements@csail.mit.edu>
> [geofft@ldpreload.com: Rebased on top of 2.9.0]
> Signed-off-by: Geoffrey Thomas <geofft@ldpreload.com>
> Signed-off-by: Don Porter <porter@cs.unc.edu>
...
> -/* #define E1000_DEBUG */
> -
> -#ifdef E1000_DEBUG
> enum {
> DEBUG_GENERAL, DEBUG_IO, DEBUG_MMIO, DEBUG_INTERRUPT,
> DEBUG_RX, DEBUG_TX, DEBUG_MDIC, DEBUG_EEPROM,
> DEBUG_UNKNOWN, DEBUG_TXSUM, DEBUG_TXERR, DEBUG_RXERR,
> DEBUG_RXFILTER, DEBUG_PHY, DEBUG_NOTYET,
> };
> +
> +static const char *debugnames[] = {
> + "GENERAL", "IO", "MMIO", "INTERRUPT",
> + "RX", "TX", "MDIC", "EEPROM",
> + "UNKNOWN", "TXSUM", "TXERR", "RXERR",
> + "RXFILTER", "PHY", "NOTYET", NULL
> +};
> #define DBGBIT(x) (1<<DEBUG_##x)
> static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL);
These should be converted to tracepoints.
See docs/devel/tracing.rst.
r~
next prev parent reply other threads:[~2024-03-29 17:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-29 15:04 [PATCH 0/1] Upstreaming Course Debugging Changes Don Porter
2024-03-29 15:04 ` [PATCH 1/1] e1000: Get debug flags from an environment variable Don Porter
2024-03-29 17:46 ` Richard Henderson [this message]
2024-04-03 13:45 ` [PATCH v2] e1000: Convert debug macros into tracepoints Don Porter
2024-04-03 17:51 ` Richard Henderson
2024-04-03 18:44 ` Austin Clements
2024-04-08 21:11 ` Don Porter
2024-04-08 21:15 ` [PATCH v3] " Don Porter
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=7e66f00d-cc69-458d-be56-266689757f68@linaro.org \
--to=richard.henderson@linaro.org \
--cc=aclements@csail.mit.edu \
--cc=geofft@ldpreload.com \
--cc=porter@cs.unc.edu \
--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 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).