Cleanup of docs spread throughout the tree
cover Cleanup of docs spread throughout the tree
After this series, I don't believe there are any docs remaining out of the docs/ subtree.
The three manpages moved have been converted from ?roff to POD to match all our other manpages
Andrew Cooper (5):
docs: Move misc README's into docs/misc/
docs: Move xentop.1 to docs/man/xentop.pod.1
docs: Move xentrace_format.1 to docs/man/xentrace_format.pod.1
docs: Support for generating man(8) pages
docs: Move xentrace.8 to docs/man/xentrace.pod.8
.gitignore | 1 + docs/Makefile | 97 ++++++++++------------ docs/man/xentop.pod.1 | 111 +++++++++++++++++++++++++ docs/man/xentrace.pod.8 | 166 ++++++++++++++++++++++++++++++++++++++ docs/man/xentrace_format.pod.1 | 46 +++++++++++ docs/misc/stubdom.txt | 93 +++++++++++++++++++++ docs/misc/xenmon.txt | 114 ++++++++++++++++++++++++++ stubdom/Makefile | 6 +- stubdom/README | 93 --------------------- tools/xenmon/Makefile | 2 - tools/xenmon/README | 114 -------------------------- tools/xenstat/xentop/Makefile | 4 +- tools/xenstat/xentop/xentop.1 | 103 ----------------------- tools/xentrace/Makefile | 6 -- tools/xentrace/xentrace.8 | 164 ------------------------------------- tools/xentrace/xentrace_format.1 | 44 ---------- 16 files changed, 577 insertions(+), 587 deletions(-) create mode 100644 docs/man/xentop.pod.1 create mode 100644 docs/man/xentrace.pod.8 create mode 100644 docs/man/xentrace_format.pod.1 create mode 100644 docs/misc/stubdom.txt create mode 100644 docs/misc/xenmon.txt delete mode 100644 stubdom/README delete mode 100644 tools/xenmon/README delete mode 100644 tools/xenstat/xentop/xentop.1 delete mode 100644 tools/xentrace/xentrace.8 delete mode 100644 tools/xentrace/xentrace_format.1
Signature · 1 line
1.7.10.4
PATCH 1/5 docs: Move misc README's into docs/misc/
To live with the other documentation.
---
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
--- stubdom/README => docs/misc/stubdom.txt | 0 tools/xenmon/README => docs/misc/xenmon.txt | 0 stubdom/Makefile | 6 +----- tools/xenmon/Makefile | 2 -- 4 files changed, 1 insertion(+), 7 deletions(-) rename stubdom/README => docs/misc/stubdom.txt (100%) rename tools/xenmon/README => docs/misc/xenmon.txt (100%)
docs/misc/stubdom.txt renamed from stubdom/README +0 -0
docs/misc/xenmon.txt renamed from tools/xenmon/README +0 -0
stubdom/Makefile +1 -5
@@ -463,15 +463,11 @@ xenstore-stubdom: mini-os-$(XEN_TARGET_ARCH)-xenstore libxc xenstore ######### ifeq ($(STUBDOM_SUPPORTED),1) -install: $(STUBDOMPATH) install-readme $(STUBDOM_INSTALL) +install: $(STUBDOMPATH) $(STUBDOM_INSTALL) else install: $(STUBDOMPATH) endif -install-readme: - $(INSTALL_DIR) $(DESTDIR)$(docdir) - $(INSTALL_DATA) README $(DESTDIR)$(docdir)/README.stubdom - install-ioemu: ioemu-stubdom $(INSTALL_DIR) "$(DESTDIR)$(LIBEXEC_BIN)" $(INSTALL_PROG) stubdom-dm "$(DESTDIR)$(LIBEXEC_BIN)"
tools/xenmon/Makefile +0 -2
@@ -31,8 +31,6 @@ install: build $(INSTALL_PROG) xenbaked $(DESTDIR)$(sbindir)/xenbaked $(INSTALL_PROG) xentrace_setmask $(DESTDIR)$(sbindir)/xentrace_setmask $(INSTALL_PROG) xenmon.py $(DESTDIR)$(sbindir)/xenmon.py - $(INSTALL_DIR) $(DESTDIR)$(docdir) - $(INSTALL_DATA) README $(DESTDIR)$(docdir)/README.xenmon .PHONY: clean clean:
Signature · 1 line
1.7.10.4
PATCH 2/5 docs: Move xentop.1 to docs/man/xentop.pod.1
In reply to Andrew CooperAnd transform to POD to match our other manpages.
The content is identical, although the layout differs slightly with certain indentation.
In addition, adjust the MAN{1,5}SRC-y find runes to be more general.
---
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
--- docs/Makefile | 6 +-- docs/man/xentop.pod.1 | 111 +++++++++++++++++++++++++++++++++++++++++ tools/xenstat/xentop/Makefile | 4 +- tools/xenstat/xentop/xentop.1 | 103 -------------------------------------- 4 files changed, 114 insertions(+), 110 deletions(-) create mode 100644 docs/man/xentop.pod.1 delete mode 100644 tools/xenstat/xentop/xentop.1
docs/Makefile +2 -4
@@ -7,10 +7,8 @@ VERSION := $(shell $(MAKE) -C $(XEN_ROOT)/xen --no-print-directory xenversion) DOC_ARCHES := arm x86_32 x86_64 # Documentation sources to build -MAN1SRC-y += $(sort $(shell find man -name 'xl*.pod.1' -print)) -MAN1SRC-y += $(sort $(shell find man -name 'xenstore*.pod.1' -print)) - -MAN5SRC-y := $(sort $(shell find man -name 'xl*.pod.5' -print)) +MAN1SRC-y := $(sort $(shell find man/ -name '*.pod.1' -print)) +MAN5SRC-y := $(sort $(shell find man/ -name '*.pod.5' -print)) MARKDOWNSRC-y := $(sort $(shell find misc -name '*.markdown' -print))
docs/man/xentop.pod.1 new file +111 -0
111 lines not on this page · raw message
tools/xenstat/xentop/Makefile +1 -3
@@ -30,11 +30,9 @@ LDFLAGS += $(APPEND_LDFLAGS) all: xentop .PHONY: install -install: xentop xentop.1 +install: xentop $(INSTALL_DIR) $(DESTDIR)$(sbindir) $(INSTALL_PROG) xentop $(DESTDIR)$(sbindir)/xentop - $(INSTALL_DIR) $(DESTDIR)$(MAN1DIR) - $(INSTALL_DATA) xentop.1 $(DESTDIR)$(MAN1DIR)/xentop.1 endif
tools/xenstat/xentop/xentop.1 deleted +0 -103
103 lines not on this page · raw message
Signature · 1 line
1.7.10.4
PATCH 3/5 docs: Move xentrace_format.1 to docs/man/xentrace_format.pod.1
In reply to Andrew CooperAnd transform to POD to match our other manpages.
The content is identical (other than one correction), although the layout differs slightly with certain indentation.
As a correction, remove the reference to xentrace_cpusplit(1) which was removed in c/s 9b9ca98b6ab16, more than 10 years ago!
---
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
--- .../man/xentrace_format.pod.1 | 46 ++++++++++---------- tools/xentrace/Makefile | 3 -- 2 files changed, 24 insertions(+), 25 deletions(-) rename tools/xentrace/xentrace_format.1 => docs/man/xentrace_format.pod.1 (55%)
docs/man/xentrace_format.pod.1 renamed from tools/xentrace/xentrace_format.1 +24 -22
@@ -1,20 +1,20 @@ -.TH XENTRACE_FORMAT 1 "11 May 2004" "Xen domain 0 utils" -.SH NAME -xentrace_format \- pretty-print Xen trace data -.SH SYNOPSIS -.B xentrace_format -[ -.I DEFS-FILE -] -.SH DESCRIPTION -.B xentrace_format -parses trace data in \fBxentrace\fP binary format from standard input -and reformats it according to the rules in a file of definitions -(\fIDEFS-FILE\fP), printing to standard output. - -The rules in \fIDEFS-FILE\fP should have the format shown below: - -\fIevent_id\fP \fIwhitespace\fP \fIformat\fP +=head1 NAME + +xentrace_format - pretty-print Xen trace data + +=head1 SYNOPSIS + +B<xentrace_format> [ I<DEFS-FILE> ] + +=head1 DESCRIPTION + +B<xentrace_format> parses trace data in B<xentrace> binary format from +standard input and reformats it according to the rules in a file of +definitions (I<DEFS-FILE>), printing to standard output. + +The rules in I<DEFS-FILE> should have the format shown below: + +I<event_id> I<whitespace> I<format> Each rule should start on a new line.
@@ -34,11 +34,13 @@ in the file tools/xentrace/formats in the Xen source tree. Depending on your system and the rate at which trace data is produced, this script may not be able to keep up with the output of -\fBxentrace\fP if it is piped directly. In these circumstances you -should have \fBxentrace\fP output to a file for processing off-line. +B<xentrace> if it is piped directly. In these circumstances you +should have B<xentrace> output to a file for processing off-line. + +=head1 AUTHOR -.SH AUTHOR Mark A. Williamson <[email protected]> -.SH "SEE ALSO" -xentrace(8), xentrace_cpusplit(1) +=head1 SEE ALSO + +xentrace(8)
tools/xentrace/Makefile +0 -3
@@ -11,7 +11,6 @@ BIN = $(BIN-y) SBIN = xentrace xentrace_setsize LIBBIN = xenctx SCRIPTS = xentrace_format -MAN1 = $(wildcard *.1) MAN8 = $(wildcard *.8) .PHONY: all
@@ -25,7 +24,6 @@ install: build $(INSTALL_DIR) $(DESTDIR)$(bindir) $(INSTALL_DIR) $(DESTDIR)$(sbindir) [ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN) - $(INSTALL_DIR) $(DESTDIR)$(MAN1DIR) $(INSTALL_DIR) $(DESTDIR)$(MAN8DIR) ifneq ($(BIN),) $(INSTALL_PROG) $(BIN) $(DESTDIR)$(bindir)
@@ -33,7 +31,6 @@ endif $(INSTALL_PROG) $(SBIN) $(DESTDIR)$(sbindir) $(INSTALL_PYTHON_PROG) $(SCRIPTS) $(DESTDIR)$(bindir) [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(LIBEXEC_BIN) - $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR) $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR) .PHONY: clean
Signature · 1 line
1.7.10.4
PATCH 4/5 docs: Support for generating man(8) pages
In reply to Andrew CooperThe manpage rules are very repetative, because of the section number being present in the filenames.
Instead of adding another set of 3 rules, switch to using a metarule to automate the repetative action. New rules for different manpage sections can be added simply by extending the $(foreach)
---
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
--- .gitignore | 1 + docs/Makefile | 91 ++++++++++++++++++++++++++------------------------------- 2 files changed, 43 insertions(+), 49 deletions(-)
.gitignore +1 -0
@@ -43,6 +43,7 @@ dist/* docs/html/ docs/man1/ docs/man5/ +docs/man8/ docs/pdf/ docs/txt/ extras/mini-os
docs/Makefile +42 -49
143 lines not on this page · raw message
Signature · 1 line
1.7.10.4
PATCH 5/5 docs: Move xentrace.8 to docs/man/xentrace.pod.8
In reply to Andrew CooperAnd transform to POD to match our other manpages.
The content is identical, although the formatting was altered slightly to conform to more usual manpage layout.
---
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
--- .../xentrace/xentrace.8 => docs/man/xentrace.pod.8 | 160 ++++++++++---------- tools/xentrace/Makefile | 3 - 2 files changed, 81 insertions(+), 82 deletions(-) rename tools/xentrace/xentrace.8 => docs/man/xentrace.pod.8 (63%)
docs/man/xentrace.pod.8 renamed from tools/xentrace/xentrace.8 +81 -79
@@ -1,92 +1,93 @@ -.TH XENTRACE 8 "22 February 2007" "Xen domain 0 utils" -.SH NAME -xentrace \- capture Xen trace buffer data -.SH SYNOPSIS -.B xentrace -[ -.I OPTIONS -] [ -.I FILE -] -.SH DESCRIPTION -.B xentrace -is used to capture trace buffer data from Xen. The data is +=head1 NAME + +xentrace - capture Xen trace buffer data + +=head1 SYNOPSIS + +B<xentrace> [ I<OPTIONS> ] [ I<FILE> ] + +=head1 DESCRIPTION + +B<xentrace> is used to capture trace buffer data from Xen. The data is output in the following binary format (host endian): -.PP + CPU(uint) TSC(u64) EVENT(u32) D1 D2 D3 D4 D5 (all u32) -.PP + Where CPU is the processor number, TSC is the record's timestamp (the value of the CPU cycle counter), EVENT is the event ID and D1...D5 are the trace data. Data is dumped onto the standard output (which must not be a TTY) or a -\fIFILE\fP specified on the command line. +I<FILE> specified on the command line. The output should be parsed using the tool xentrace_format, which can produce human-readable output in ASCII format. -.SS Options -.TP -.B -t, --log-thresh=l -set the threshold number, l, of new records required to trigger a write of +=head1 OPTIONS + +=over 4 + +=item B<-t> I<l>, B<--log-thresh>=I<l> + +set the threshold number, I<l>, of new records required to trigger a write of all new records to the output -.TP -.B -s, --poll-sleep=p -set the time, p, (in milliseconds) to sleep between polling the buffers + +=item B<-s> I<p>, B<--poll-sleep>=I<p> + +set the time, I<p>, (in milliseconds) to sleep between polling the buffers for new data. -.TP -.B -c, --cpu-mask=[\fIc\fP|\fICPU-LIST\fP|\fIall\fP] + +=item B<-c> [I<c>|I<CPU-LIST>|I<all>], B<--cpu-mask>=[I<c>|I<CPU-LIST>|I<all>] + This can be: a hex value (of the form 0xNNNN...), or a set of cpu -ranges as described below, or the string \fIall\fP. Hex values are limited +ranges as described below, or the string I<all>. Hex values are limited to 32 bits. If not specified, the cpu-mask as set during bootup will be -constructed. If using the \fICPU-LIST\fP it expects decimal numbers, which +constructed. If using the I<CPU-LIST> it expects decimal numbers, which may be specified as follows: -.RS 4 -.ie n .IP """0-3""" 4 -.el .IP "``0-3''" 4 -.IX Item "0-3" -Trace only on CPUs 0 through 3 -.ie n .IP """0,2,5-7""" 4 -.el .IP "``0,2,5-7''" 4 -.IX Item "0,2,5-7" -Trace only on CPUs 0, 2, and 5 through 7. -.ie n .IP """-3""" 4 -.el .IP "``-3''" 4 -.IX Item "-3" -Trace only on CPUs 0 through 3 -.ie n .IP """-3,7""" 4 -.el .IP "``-3,7''" 4 -.IX Item "-3,7" -Trace only on CPUs 0 through 3 and 7 -.ie n .IP """3-""" 4 -.el .IP "``3-''" 4 -.IX Item "-3-" -Trace only on CPUs 3 up to maximum numbers of CPUs the host has. -.RE -.Sp - -If using \fIall\fP it will use all of the CPUs the host has. -.TP -.B -e, --evt-mask=e + "0-3" + Trace only on CPUs 0 through 3 + + "0,2,5-7" + Trace only on CPUs 0, 2, and 5 through 7 + + "-3" + Trace only on CPUs 0 through 3 + + "-3,7" + Trace only on CPUs 0 through 3 and 7 + + "3-" + Trace only on CPUs 3 up to maximum numbers of CPUs the host has + +If using I<all> it will use all of the CPUs the host has. + +=item B<-e> I<mask>, B<--evt-mask>=I<mask> + set event capture mask. If not specified the TRC_ALL will be used. -.TP -.B -?, --help + +=item B<-?>, B<--help> + Give this help list -.TP -.B --usage + +=item B<--usage> + Give a short usage message -.TP -.B -V, --version + +=item B<-V>, B<--version> + Print program version -.SS Event Classes (Masks) +=back + +=head2 Event Classes (Masks) + The following event classes (masks) can be used to filter the events being gathered by xentrace: -.PP - \fIID\fP \fIDescription\fP -.PP + + ID Description + 0x0001f000 TRC_GEN 0x0002f000 TRC_SCHED 0x0004f000 TRC_DOM0OP
@@ -95,22 +96,23 @@ gathered by xentrace: 0xfffff000 TRC_ALL -.SS Event Subclasses (More Masks) +=head2 Event Subclasses (More Masks) + The following event subclasses (masks) can also be used to filter the events being gathered by xentrace: -.PP - \fIID\fP \fIDescription\fP -.PP + + ID Description + 0x00081000 TRC_HVM_ENTRYEXIT 0x00082000 TRC_HVM_HANDLER -.SS Events -.B xentrace -collects the following events from the trace buffer: -.PP - \fIID\fP \fIDescription\fP -.PP +=head2 Events + +B<xentrace> collects the following events from the trace buffer: + + ID Description + 0x0001f001 TRC_LOST_RECORDS 0x0002f001 TRC_SCHED_DOM_ADD 0x0002f002 TRC_SCHED_DOM_REM
@@ -145,8 +147,8 @@ collects the following events from the trace buffer: 0x0008200D TRC_HVM_MSR_WRITE 0x0008200E TRC_HVM_CPUID 0x0008200F TRC_HVM_INTR - 0x00082010 TRC_HVM_NMI - 0x00082011 TRC_HVM_SMI + 0x00082010 TRC_HVM_NMI + 0x00082011 TRC_HVM_SMI 0x00082012 TRC_HVM_VMMCALL 0x00082013 TRC_HVM_HLT 0x00082014 TRC_HVM_INVLPG
@@ -155,10 +157,10 @@ collects the following events from the trace buffer: 0x0010f002 TRC_MEM_PAGE_GRANT_UNMAP 0x0010f003 TRC_MEM_PAGE_GRANT_TRANSFER -.PP +=head1 AUTHOR -.SH AUTHOR Mark A. Williamson <[email protected]> -.SH "SEE ALSO" +=head1 SEE ALSO + xentrace_format(1)
tools/xentrace/Makefile +0 -3
@@ -11,7 +11,6 @@ BIN = $(BIN-y) SBIN = xentrace xentrace_setsize LIBBIN = xenctx SCRIPTS = xentrace_format -MAN8 = $(wildcard *.8) .PHONY: all all: build
@@ -24,14 +23,12 @@ install: build $(INSTALL_DIR) $(DESTDIR)$(bindir) $(INSTALL_DIR) $(DESTDIR)$(sbindir) [ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN) - $(INSTALL_DIR) $(DESTDIR)$(MAN8DIR) ifneq ($(BIN),) $(INSTALL_PROG) $(BIN) $(DESTDIR)$(bindir) endif $(INSTALL_PROG) $(SBIN) $(DESTDIR)$(sbindir) $(INSTALL_PYTHON_PROG) $(SCRIPTS) $(DESTDIR)$(bindir) [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(LIBEXEC_BIN) - $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR) .PHONY: clean clean:
Signature · 1 line
1.7.10.4
Quoted 6 lines · Andrew Cooper
After this series, I don't believe there are any docs remaining out of the docs/ subtree.
The three manpages moved have been converted from ?roff to POD to match all our other manpages
Quoted 7 lines
Andrew Cooper (5):
docs: Move misc README's into docs/misc/
docs: Move xentop.1 to docs/man/xentop.pod.1
docs: Move xentrace_format.1 to docs/man/xentrace_format.pod.1
docs: Support for generating man(8) pages
docs: Move xentrace.8 to docs/man/xentrace.pod.8
Whole series:
Wei Liu writes ("Re: [Xen-devel] [DOCS DAY] [PATCH for-4.6 0/5] Cleanup of docs spread throughout the tree"):
Quoted 4 lines · Andrew Cooper
Whole series:
Acked-by Wei Liu <[email protected]>
Thanks,
Ian.
PATCH 1/1 docs: Fix installation of man8 pages
c/s a430436 "docs: Support for generating man(8) pages" accidentally failed to update to the install and clean rules for man8 pages, meaning that c/s 7b21214 "docs: Move xentrace.8 to docs/man/xentrace.pod.8" caused a packaging regression when it came to xentop.8
To avoid similar bugs in the future, move the generation of the build, install and clean rules into the manpage metarule.
---
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
--- docs/Makefile | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-)
docs/Makefile +23 -12
@@ -58,20 +58,15 @@ else @echo "fig2dev (transfig) not installed; skipping figs." endif -.PHONY: man-pages -man-pages: $(DOC_MAN1) $(DOC_MAN5) $(DOC_MAN8) - .PHONY: pdf pdf: $(DOC_PDF) .PHONY: clean -clean: +clean: clean-man-pages $(MAKE) -C figs clean rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~ rm -rf *.ilg *.log *.ind *.toc *.bak *.tmp core rm -rf html txt pdf - rm -rf man5 - rm -rf man1 .PHONY: distclean distclean: clean
@@ -80,6 +75,8 @@ distclean: clean # Top level install targets +.PHONY: man-pages install-man-pages clean-man-pages + # Metarules for generating manpages. Run with $(1) substitued for section define GENERATE_MANPAGE_RULES
@@ -110,17 +107,31 @@ else @echo "pod2text not installed; skipping $$@" endif +# Build +.PHONY: man$(1)-pages +man$(1)-pages: $$(DOC_MAN$(1)) + +# Install +.PHONY: install-man$(1)-pages +install-man$(1)-pages: man$(1)-pages + $(INSTALL_DIR) $(DESTDIR)$(mandir) + cp -r man$(1) $(DESTDIR)$(mandir) + +# Clean +.PHONY: clean-man$(1)-pages +clean-man$(1)-pages: + rm -rf man$(1) + +# Link buld/install/clean to toplevel rules +man-pages: man$(1)-pages +install-man-pages: install-man$(1)-pages +clean-man-pages: clean-man$(1)-pages + endef # Generate manpage rules for each section $(foreach i,1 5 8,$(eval $(call GENERATE_MANPAGE_RULES,$(i)))) -.PHONY: install-man-pages -install-man-pages: man-pages - $(INSTALL_DIR) $(DESTDIR)$(mandir) - cp -R man1 $(DESTDIR)$(mandir) - cp -R man5 $(DESTDIR)$(mandir) - .PHONY: install-html install-html: html txt figs $(INSTALL_DIR) $(DESTDIR)$(docdir)
Signature · 1 line
1.7.10.4
Re: [DOCSDAY PATCH for-4.6] docs: Fix installation of man8 pages
Andrew Cooper writes ("[DOCSDAY PATCH for-4.6] docs: Fix installation of man8 pages"):
Quoted 9 lines
c/s a430436 "docs: Support for generating man(8) pages" accidentally failed to update to the install and clean rules for man8 pages, meaning that c/s 7b21214 "docs: Move xentrace.8 to docs/man/xentrace.pod.8" caused a packaging regression when it came to xentop.8
To avoid similar bugs in the future, move the generation of the build, install and clean rules into the manpage metarule.
Signed-off-by Andrew Cooper <[email protected]>
(Wei gave his release-ack on irc)