All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Juergen Gross <jgross@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>, Wei Liu <wl@xen.org>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
	Julien Grall <julien.grall@arm.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [Xen-devel] [PATCH v5 3/4] xen: refactor debugtrace data
Date: Thu, 5 Sep 2019 14:24:04 +0200	[thread overview]
Message-ID: <79c18eb9-1c1b-c64f-9343-d59e67d9be9c@suse.com> (raw)
In-Reply-To: <9459eba3-3da0-3229-94ae-94e2d2f0061e@suse.com>

On 05.09.2019 14:19, Juergen Gross wrote:
> On 05.09.19 14:13, Jan Beulich wrote:
>> On 05.09.2019 13:39, Juergen Gross wrote:
>>> --- a/xen/common/debugtrace.c
>>> +++ b/xen/common/debugtrace.c
>>> @@ -17,34 +17,40 @@
>>>   #define DEBUG_TRACE_ENTRY_SIZE   1024
>>>   
>>>   /* Send output direct to console, or buffer it? */
>>> -static volatile int debugtrace_send_to_console;
>>> +static volatile bool debugtrace_send_to_console;
>>>   
>>> -static char        *debugtrace_buf; /* Debug-trace buffer */
>>> -static unsigned int debugtrace_prd; /* Producer index     */
>>> -static unsigned int debugtrace_kilobytes = 128, debugtrace_bytes;
>>> -static unsigned int debugtrace_used;
>>> +struct debugtrace_data {
>>> +    unsigned long bytes; /* Size of buffer. */
>>
>> Hmm, I'm sorry for recognizing this only now, but why does this
>> field need replicating? It's the same in all instances of the
>> structure afaict.
> 
> Oh, right. In the beginning I had plans to support modifying the buffer
> size at runtime.
> 
> Okay, I'll change it.

Thanks. FAOD this is not going to invalidate any of my acks.

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-09-05 12:24 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-05 11:39 [Xen-devel] [PATCH v5 0/4] xen: debugtrace cleanup and per-cpu buffer support Juergen Gross
2019-09-05 11:39 ` [Xen-devel] [PATCH v5 1/4] xen: fix debugtrace clearing Juergen Gross
2019-09-05 12:17   ` Jan Beulich
2019-09-05 12:22     ` Juergen Gross
2019-09-05 11:39 ` [Xen-devel] [PATCH v5 2/4] xen: move debugtrace coding to common/debugtrace.c Juergen Gross
2019-09-05 12:20   ` Jan Beulich
2019-09-05 12:32     ` Juergen Gross
2019-09-05 11:39 ` [Xen-devel] [PATCH v5 3/4] xen: refactor debugtrace data Juergen Gross
2019-09-05 12:01   ` Jan Beulich
2019-09-05 12:12     ` Juergen Gross
2019-09-05 12:22       ` Jan Beulich
2019-09-05 12:27         ` Juergen Gross
2019-09-05 12:37           ` Jan Beulich
2019-09-05 12:46             ` Juergen Gross
2019-09-05 14:36               ` Juergen Gross
2019-09-05 14:43                 ` Jan Beulich
2019-09-06  8:49                   ` Juergen Gross
2019-09-06  9:10                     ` Jan Beulich
2019-09-06  9:21                       ` Juergen Gross
2019-09-05 12:13   ` Jan Beulich
2019-09-05 12:19     ` Juergen Gross
2019-09-05 12:24       ` Jan Beulich [this message]
2019-09-05 11:39 ` [Xen-devel] [PATCH v5 4/4] xen: add per-cpu buffer option to debugtrace Juergen Gross
2019-09-05 11:58   ` Jan Beulich

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=79c18eb9-1c1b-c64f-9343-d59e67d9be9c@suse.com \
    --to=jbeulich@suse.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jgross@suse.com \
    --cc=julien.grall@arm.com \
    --cc=konrad.wilk@oracle.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.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.