]> xenbits.xensource.com Git - people/liuw/xen.git/commit
debugtrace: add per-cpu buffer option
authorJuergen Gross <jgross@suse.com>
Thu, 12 Sep 2019 13:12:21 +0000 (15:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 12 Sep 2019 13:12:21 +0000 (15:12 +0200)
commit6338c9ead9ff9ef6b3197b0b401484f5323cabd3
treeef6abb4226d51bb6fd50f2fd4ed773f63fd2072b
parentd974f321a7996e149e71f8773ac8d3448d3a07b7
debugtrace: add per-cpu buffer option

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>
docs/misc/xen-command-line.pandoc
xen/common/debugtrace.c