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 v7 4/5] xen: add per-cpu buffer option to debugtrace
Date: Mon, 9 Sep 2019 12:05:24 +0200	[thread overview]
Message-ID: <74f4e23a-e306-8372-e55d-dd361fd29e72@suse.com> (raw)
In-Reply-To: <20190909092506.24792-5-jgross@suse.com>

On 09.09.2019 11:25, Juergen Gross wrote:
> debugtrace is normally writing trace entries into a single trace
> buffer. There are cases where this is not optimal, e.g. when hunting
> a bug which requires writing lots of trace entries and one cpu is
> stuck. This will result in other cpus filling the trace buffer and
> finally overwriting the interesting trace entries of the hanging cpu.
> 
> In order to be able to debug such situations add the capability to use
> per-cpu trace buffers. This can be selected by specifying the
> debugtrace boot parameter with the modifier "cpu:", like:
> 
>   debugtrace=cpu:16
> 
> At the same time switch the parsing function to accept size modifiers
> (e.g. 4M or 1G).
> 
> Printing out the trace entries is done for each buffer in order to
> minimize the effort needed during printing. As each entry is prefixed
> with its sequence number sorting the entries can easily be done when
> analyzing them.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Jan Beulich <jbeulich@suse.com>
albeit preferably with the __read_mostly added as indicated in
reply to v6 (can still be done while committing).

> ---
> V2:
> - only allocate buffer if not already done so
> V4:
> - unsigned int -> unsigned long (Jan Beulich)
> - replace check for bytes < PAGE_SIZE by !bytes (Jan Beulich)
> - print info which buffer allocation failed (Jan Beulich)
> - replace switch by if in cpu notifier handler (Jan Beulich)
> V5:
> - don't silently ignore trailing characters when parsing buffer size
>   (Jan Beulich)
> - limit scope of some variables (Jan Beulich)
> - adjust error message format (Jan Beulich)
> V6:
> - move calculation of final debugtrace_bytes value to parameter parsing

V7: ...

Jan

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

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

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-09  9:25 [Xen-devel] [PATCH v7 0/5] xen: debugtrace cleanup and per-cpu buffer support Juergen Gross
2019-09-09  9:25 ` [Xen-devel] [PATCH v7 1/5] xen: fix debugtrace clearing Juergen Gross
2019-09-09  9:25 ` [Xen-devel] [PATCH v7 2/5] xen: move debugtrace coding to common/debugtrace.c Juergen Gross
2019-09-09  9:25 ` [Xen-devel] [PATCH v7 3/5] xen: refactor debugtrace data Juergen Gross
2019-09-09  9:25 ` [Xen-devel] [PATCH v7 4/5] xen: add per-cpu buffer option to debugtrace Juergen Gross
2019-09-09 10:05   ` Jan Beulich [this message]
2019-09-09  9:25 ` [Xen-devel] [PATCH v7 5/5] xen: add debugtrace entry when entry count is wrapping Juergen Gross
2019-09-09 10:06   ` 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=74f4e23a-e306-8372-e55d-dd361fd29e72@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.