Skip to content

Commit e4143ca

Browse files
committed
doc: fix use of double dashes
Sphinx transforms ``--`` into an en-dash within a paragraph (not within a code, pre, or kbd block though). This presents a problem documenting command parameters such as ``--name`` where the ``--`` is transformed into a single en-dash. Rather than disabling all smartquote transformations in the Sphinx conf.py (setting ``smartquotes = False``), we fixes cases where ``--`` should not be transformed by using a block that is ignored by the smartquote transformation. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
1 parent 6dec166 commit e4143ca

File tree

4 files changed

+54
-29
lines changed

4 files changed

+54
-29
lines changed

doc/release_notes_0.3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ release in Sep 2018 (click on the CommitID link to see details):
430430
- :acrn-commit:`49b476bb` hv: vm_load: set zeropage just past boot args
431431
- :acrn-commit:`9368373f` tools: acrn-crashlog: check the pointer after getting sender
432432
- :acrn-commit:`2973db78` DM: VMcfg: generated example header
433-
- :acrn-commit:`c86da003` DM: VMcfg: support --dump options
434-
- :acrn-commit:`67d72920` DM: VMcfg: support --vmcfg options
433+
- :acrn-commit:`c86da003` DM: VMcfg: support ``--dump`` options
434+
- :acrn-commit:`67d72920` DM: VMcfg: support ``--vmcfg`` options
435435
- :acrn-commit:`321021eb` DM: VMcfg: mrb-env-setup.sh
436436
- :acrn-commit:`d2ed9955` DM: VMcfg: support VM1 on MRB
437437
- :acrn-commit:`ae5b32dc` DM: VMcfg: build-in vm configurations

doc/release_notes_0.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ release in Nov 2018 (click on the CommitID link to see details):
211211
- :acrn-commit:`eec3a342` dm: fix the race issue in mevent_del
212212
- :acrn-commit:`87e7bdb9` DM: updating launch_uos.sh
213213
- :acrn-commit:`9e0562f4` hv: add obvious comment for empty else clause following else if
214-
- :acrn-commit:`d36b44f2` hv: avoid to use "++" or "--" operators in an expression
214+
- :acrn-commit:`d36b44f2` hv: avoid to use ``++`` or ``--`` operators in an expression
215215
- :acrn-commit:`f33edc67` hv: fix reference parameter to procedure is reassigned
216216
- :acrn-commit:`36be890e` hv: fix included file not protected with #define
217217
- :acrn-commit:`ae9d4361` hv: minimize the case of "identifier reuse"

doc/user-guides/acrn-dm-parameters.rst

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
1414
:widths: 22 78
1515
:header-rows: 0
1616

17-
* - \-A, --acpi
17+
* - :kbd:`-A, --acpi`
1818
- Create ACPI tables.
1919
With this option, DM will build an ACPI table into its VMs F-Segment
2020
(0xf2400). This ACPI table includes full tables for RSDP, RSDT, XSDT,
2121
MADT, FADT, HPET, MCFG, FACS, and DSDT. All these items are programmed
2222
according to acrn-dm command line configuration and derived from their
2323
default value.
2424

25-
* - \-B, --bootargs <bootargs>
25+
* - :kbd:`-B, --bootargs <bootargs>`
2626
- Set the UOS kernel command line arguments.
2727
The maximum length is 1023.
2828
The bootargs string will be passed to the kernel as its cmdline.
@@ -33,12 +33,12 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
3333

3434
specifies the kernel log level at 7
3535

36-
* - \-c, --ncpus <cpus>
36+
* - :kbd:`-c, --ncpus <cpus>`
3737
- Set number of CPUs for UOS. This number is an integer and must not be
3838
more than the total number of CPUs in the system, minus one (which is
3939
used by the SOS).
4040

41-
* - \--enable_trusty
41+
* - :kbd:`--enable_trusty`
4242
- Enable trusty for guest.
4343
For Android guest OS, ACRN provides a VM environment with two worlds:
4444
normal world and trusty world. The Android OS runs in the the normal
@@ -48,7 +48,7 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
4848

4949
By default, the trusty world is disabled. Use this option to enable it.
5050

51-
* - \-G, --gvtargs <GVT_args>
51+
* - :kbd:`-G, --gvtargs <GVT_args>`
5252
- ACRN implements GVT-g for graphics virtualization (aka AcrnGT). This
5353
option allows you to set some of its parameters.
5454

@@ -67,10 +67,10 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
6767
sets up 10Mb for GVT-g aperture, 128M for GVT-g hidden
6868
memory, and 6 fence registers.
6969

70-
* - \-h, --help
70+
* - :kbd:`-h, --help`
7171
- Show a summary of commands.
7272

73-
* - \-i, --ioc_node <ioc_mediator_parameters>
73+
* - :kbd:`-i, --ioc_node <ioc_mediator_parameters>`
7474
- IOC (IO Controller) is a bridge of an SoC to communicate with Vehicle Bus.
7575
It routes Vehicle Bus signals, for example extracted from CAN messages,
7676
from IOC to the SoC and back, as well as controlling the onboard
@@ -107,45 +107,45 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
107107
-i /run/acrn/ioc_$vm_name,0x20
108108
-l com2,/run/acrn/ioc_$vm_name
109109

110-
* - \-k, --kernel <kernel_image_path>
110+
* - :kbd:`-k, --kernel <kernel_image_path>`
111111
- Set the kernel (full path) for the UOS kernel. The maximum path length is
112112
1023 characters. The DM handles bzImage image format.
113113

114114
usage: ``-k /path/to/your/kernel_image``
115115

116-
* - \-l, --lpc <lpc_device_configuration>
117-
- (See **-i, --ioc_node**)
116+
* - :kbd:`-l, --lpc <lpc_device_configuration>`
117+
- (See :kbd:`-i, --ioc_node`)
118118

119-
* - \-m, --memsize <memory_size>
119+
* - :kbd:`-m, --memsize <memory_size>`
120120
- Setup total memory size for UOS.
121121

122122
memory_size format is: "<size>{K/k, B/b, M/m, G/g}", and size is an
123123
integer.
124124

125125
usage: ``-m 4g``: set UOS memory to 4 gigabytes.
126126

127-
* - \-p, --pincpu <vcpu:hostcpu>
127+
* - :kbd:`-p, --pincpu <vcpu:hostcpu>`
128128
- Pin host CPU to appointed vCPU:
129129

130130
- ``vcpu`` is the ID of the CPU seen by the UOS, and
131131
- ``hostcpu`` is the physical CPU ID on the system.
132132

133133
Example: ``-p "1:2"`` means pin the 2nd physical cpu to 1st vcpu in UOS
134134

135-
* - \--ptdev_no_reset
135+
* - :kbd:`--ptdev_no_reset`
136136
- Disable reset check for pci device.
137137
When assigning a PCI device as a passthrough device, we will reset it
138138
first to get it to a valid device state. So if the device doesn't have
139139
the reset capability, the passthrough will fail. The PCI device reset
140140
can be disabled using this option.
141141

142-
* - \-r, --ramdisk <ramdisk_image_path>
142+
* - :kbd:`-r, --ramdisk <ramdisk_image_path>`
143143
- Set the ramdisk (full path) for the UOS. The maximum length is 1023.
144144
The supported ramdisk format depends on your UOS kernel configuration.
145145

146146
usage: ``-r /path/to/your/ramdisk_image``
147147

148-
* - \-s, --pci_slot <slot_config>
148+
* - :kbd:`-s, --pci_slot <slot_config>`
149149
- Setup PCI device configuration.
150150

151151
slot_config format is::
@@ -178,7 +178,7 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
178178
This add virtual block in PCI slot 9 and use "/root/test.img" as the
179179
disk image
180180

181-
* - \-U, --uuid <uuid>
181+
* - :kbd:`-U, --uuid <uuid>`
182182
- Set UUID for a VM.
183183
Every VM is identified by a UUID. You can define that UUID with this
184184
option. If you don't use this option, a default one
@@ -190,10 +190,10 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
190190

191191
set the newly created VM's UUID to "42795636-1d31-6512-7432-087d33b34756"
192192

193-
* - \-v, --version
193+
* - :kbd:`-v, --version`
194194
- Show Device Model version
195195

196-
* - \--vsbl <vsbl_file_path>
196+
* - :kbd:`--vsbl <vsbl_file_path>`
197197
- Virtual Slim bootloader (vSBL) is the virtual bootloader supporting
198198
booting of the UOS on the ACRN hypervisor platform. The vSBL design is
199199
derived from Slim Bootloader, which follows a staged design approach
@@ -213,13 +213,13 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
213213

214214
uses ``/usr/share/acrn/bios/VSBL.bin`` as the vSBL image
215215

216-
* - \-W, --virtio_msix
216+
* - :kbd:`-W, --virtio_msix`
217217
- This option forces virtio to use single-vector MSI.
218218
By default, any virtio-based devices will use MSI-X as its interrupt
219219
method. If you want to use single-vector MSI interrupt, you can do so
220220
using this option.
221221

222-
* - \-Y, --mptgen
222+
* - :kbd:`-Y, --mptgen`
223223
- Disable MPtable generation.
224224
The MultiProcessor Specification (MPS) for the x86 architecture is an
225225
open standard describing enhancements to both operating systems and

tools/acrntrace/README.rst

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ A ``scripts`` directory includes scripts to analyze the trace data.
1212
Usage
1313
*****
1414

15+
acrntrace
16+
=========
17+
1518
The ``acrntrace`` tool runs on the Service OS (SOS) to capture trace data and
1619
output to trace file under ``./acrntrace`` with raw (binary) data format.
1720

@@ -22,6 +25,9 @@ Options:
2225
-t max_time max time to capture trace data (in second)
2326
-c clear the buffered old data
2427

28+
acrntrace_format.py
29+
===================
30+
2531
The ``acrntrace_format.py`` is a offline tool for parsing trace data (as output
2632
by acrntrace) to human-readable formats based on given format.
2733

@@ -53,17 +59,33 @@ There can be only one such rule for each type of event.
5359
An example *formats_file* is available in the acrn_hypervisor repo in
5460
``hypervisor/tools/acrntrace/scripts/formats``.
5561

62+
acrnalyze.py
63+
============
64+
5665
The ``acrnalyze.py`` is a offline tool to analyze trace data (as output by
5766
acrntrace) based on given analyzer, such as ``vm_exit`` or ``irq``.
5867

5968
Options:
6069

61-
-h print this message
62-
-i, --ifile=string input file name
63-
-o, --ofile=string output filename
64-
-f, --frequency=unsigned_int TSC frequency in MHz
65-
--vm_exit generate a vm_exit report
66-
--irq generate an IRQ-related report
70+
.. list-table::
71+
72+
* - :kbd:`-h`
73+
- print this message
74+
75+
* - :kbd:`-i, --ifile=string`
76+
- input file name
77+
78+
* - :kbd:`-o, --ofile=string`
79+
- output filename
80+
81+
* - :kbd:`-f, --frequency=unsigned_int`
82+
- TSC frequency in MHz
83+
84+
* - :kbd:`--vm_exit`
85+
- generate a vm_exit report
86+
87+
* - :kbd:`--irq`
88+
- generate an IRQ-related report
6789

6890
.. note:: We depend on TSC frequency to do time-based analysis. Please configure
6991
the right TSC frequency that acrn runs on. TSC frequency can be obtained
@@ -74,6 +96,9 @@ Options:
7496
doesn't support for invariant TSC. The results may therefore not be
7597
completely accurate in that regard.
7698

99+
Typical use example
100+
===================
101+
77102
Here's a typical use of ``acrntrace`` to capture trace data from the SOS,
78103
converting the binary data to human-readable form, copying the processed trace
79104
data to your linux system, and running the analysis tool.

0 commit comments

Comments
 (0)