Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1956d551da2433756e2b94372d3a6181 > files > 511

xen-doc-4.12.1-1.mga7.noarch.rpm

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>xentrace - capture Xen trace buffer data</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body>



<ul id="index">
  <li><a href="#NAME">NAME</a></li>
  <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="#OPTIONS">OPTIONS</a>
    <ul>
      <li><a href="#Event-Classes-Masks">Event Classes (Masks)</a></li>
      <li><a href="#Event-Subclasses-More-Masks">Event Subclasses (More Masks)</a></li>
      <li><a href="#Events">Events</a></li>
    </ul>
  </li>
  <li><a href="#AUTHOR">AUTHOR</a></li>
  <li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>

<h1 id="NAME">NAME</h1>

<p>xentrace - capture Xen trace buffer data</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<p><b>xentrace</b> [ <i>OPTIONS</i> ] [ <i>FILE</i> ]</p>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p><b>xentrace</b> is used to capture trace buffer data from Xen. The data is output in the following binary format (host endian):</p>

<pre><code>    CPU(uint) TSC(u64) EVENT(u32) D1 D2 D3 D4 D5 (all u32)</code></pre>

<p>Where CPU is the processor number, TSC is the record&#39;s timestamp (the value of the CPU cycle counter), EVENT is the event ID and D1...D5 are the trace data.</p>

<p>Data is dumped onto the standard output (which must not be a TTY) or a <i>FILE</i> specified on the command line.</p>

<p>The output should be parsed using the tool xentrace_format, which can produce human-readable output in ASCII format.</p>

<h1 id="OPTIONS">OPTIONS</h1>

<dl>

<dt id="t-l---log-thresh-l"><b>-t</b> <i>l</i>, <b>--log-thresh</b>=<i>l</i></dt>
<dd>

<p>set the threshold number, <i>l</i>, of new records required to trigger a write of all new records to the output</p>

</dd>
<dt id="s-p---poll-sleep-p"><b>-s</b> <i>p</i>, <b>--poll-sleep</b>=<i>p</i></dt>
<dd>

<p>set the time, <i>p</i>, (in milliseconds) to sleep between polling the buffers for new data.</p>

</dd>
<dt id="c-c-CPU-LIST-all---cpu-mask-c-CPU-LIST-all"><b>-c</b> [<i>c</i>|<i>CPU-LIST</i>|<i>all</i>], <b>--cpu-mask</b>=[<i>c</i>|<i>CPU-LIST</i>|<i>all</i>]</dt>
<dd>

<p>This can be: a hex value (of the form 0xNNNN...), or a set of cpu ranges as described below, or the string <i>all</i>. Hex values are limited to 32 bits. If not specified, the cpu-mask as set during bootup will be constructed. If using the <i>CPU-LIST</i> it expects decimal numbers, which may be specified as follows:</p>

<pre><code>  &quot;0-3&quot;
      Trace only on CPUs 0 through 3

  &quot;0,2,5-7&quot;
      Trace only on CPUs 0, 2, and 5 through 7

  &quot;-3&quot;
      Trace only on CPUs 0 through 3

  &quot;-3,7&quot;
      Trace only on CPUs 0 through 3 and 7

  &quot;3-&quot;
      Trace only on CPUs 3 up to maximum numbers of CPUs the host has</code></pre>

<p>If using <i>all</i> it will use all of the CPUs the host has.</p>

</dd>
<dt id="e-mask---evt-mask-mask"><b>-e</b> <i>mask</i>, <b>--evt-mask</b>=<i>mask</i></dt>
<dd>

<p>set event capture mask. If not specified the TRC_ALL will be used.</p>

</dd>
<dt id="help"><b>-?</b>, <b>--help</b></dt>
<dd>

<p>Give this help list</p>

</dd>
<dt id="usage"><b>--usage</b></dt>
<dd>

<p>Give a short usage message</p>

</dd>
<dt id="V---version"><b>-V</b>, <b>--version</b></dt>
<dd>

<p>Print program version</p>

</dd>
</dl>

<h2 id="Event-Classes-Masks">Event Classes (Masks)</h2>

<p>The following event classes (masks) can be used to filter the events being gathered by xentrace:</p>

<pre><code>        ID                  Description

        0x0001f000          TRC_GEN
        0x0002f000          TRC_SCHED
        0x0004f000          TRC_DOM0OP
        0x0008f000          TRC_HVM
        0x0010f000          TRC_MEM
        0xfffff000          TRC_ALL</code></pre>

<h2 id="Event-Subclasses-More-Masks">Event Subclasses (More Masks)</h2>

<p>The following event subclasses (masks) can also be used to filter the events being gathered by xentrace:</p>

<pre><code>        ID                  Description

        0x00081000          TRC_HVM_ENTRYEXIT
        0x00082000          TRC_HVM_HANDLER</code></pre>

<h2 id="Events">Events</h2>

<p><b>xentrace</b> collects the following events from the trace buffer:</p>

<pre><code>        ID                 Description

        0x0001f001         TRC_LOST_RECORDS
        0x0002f001         TRC_SCHED_DOM_ADD
        0x0002f002         TRC_SCHED_DOM_REM
        0x0002f003         TRC_SCHED_SLEEP
        0x0002f004         TRC_SCHED_WAKE
        0x0002f005         TRC_SCHED_YIELD
        0x0002f006         TRC_SCHED_BLOCK
        0x0002f007         TRC_SCHED_SHUTDOWN
        0x0002f008         TRC_SCHED_CTL
        0x0002f009         TRC_SCHED_ADJDOM
        0x0002f010         TRC_SCHED_SWITCH
        0x0002f011         TRC_SCHED_S_TIMER_FN
        0x0002f012         TRC_SCHED_T_TIMER_FN
        0x0002f013         TRC_SCHED_DOM_TIMER_FN
        0x0002f014         TRC_SCHED_SWITCH_INFPREV
        0x0002f015         TRC_SCHED_SWITCH_INFNEXT

        0x00081001         TRC_HVM_VMENTRY
        0x00081002         TRC_HVM_VMEXIT
        0x00082001         TRC_HVM_PF_XEN
        0x00082002         TRC_HVM_PF_INJECT
        0x00082003         TRC_HVM_INJ_EXC
        0x00082004         TRC_HVM_INJ_VIRQ
        0x00082005         TRC_HVM_REINJ_VIRQ
        0x00082006         TRC_HVM_IO_READ
        0x00082007         TRC_HVM_IO_WRITE
        0x00082008         TRC_HVM_CR_READ
        0x00082009         TRC_HVM_CR_WRITE
        0x0008200A         TRC_HVM_DR_READ
        0x0008200B         TRC_HVM_DR_WRITE
        0x0008200C         TRC_HVM_MSR_READ
        0x0008200D         TRC_HVM_MSR_WRITE
        0x0008200E         TRC_HVM_CPUID
        0x0008200F         TRC_HVM_INTR
        0x00082010         TRC_HVM_NMI
        0x00082011         TRC_HVM_SMI
        0x00082012         TRC_HVM_VMMCALL
        0x00082013         TRC_HVM_HLT
        0x00082014         TRC_HVM_INVLPG

        0x0010f001         TRC_MEM_PAGE_GRANT_MAP
        0x0010f002         TRC_MEM_PAGE_GRANT_UNMAP
        0x0010f003         TRC_MEM_PAGE_GRANT_TRANSFER</code></pre>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Mark A. Williamson &lt;mark.a.williamson@intel.com&gt;</p>

<h1 id="SEE-ALSO">SEE ALSO</h1>

<p>xentrace_format(1)</p>


</body>

</html>