kvm_stat: add man page and tui column headers
cover kvm_stat: add man page and tui column headers
This series makes kvm_stat easier to learn for newcomers by adding a man page and text UI column headers.
Stefan Hajnoczi (2):
kvm_stat: add column headers to text UI
kvm_stat: add kvm_stat.1 man page
Makefile | 9 ++++++++ scripts/kvm/kvm_stat | 5 ++++- scripts/kvm/kvm_stat.texi | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 scripts/kvm/kvm_stat.texi
Signature · 1 line
2.1.0
PATCH 2/2 kvm_stat: add kvm_stat.1 man page
--- Makefile | 9 ++++++++ scripts/kvm/kvm_stat.texi | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 scripts/kvm/kvm_stat.texi
Makefile +9 -0
@@ -84,6 +84,9 @@ HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF) ifdef BUILD_DOCS DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 qmp-commands.txt +ifdef CONFIG_LINUX +DOCS+=kvm_stat.1 +endif ifdef CONFIG_VIRTFS DOCS+=fsdev/virtfs-proxy-helper.1 endif
@@ -490,6 +493,12 @@ qemu-nbd.8: qemu-nbd.texi $(POD2MAN) --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \ " GEN $@") +kvm_stat.1: scripts/kvm/kvm_stat.texi + $(call quiet-command, \ + perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< kvm_stat.pod && \ + $(POD2MAN) --section=1 --center=" " --release=" " kvm_stat.pod > $@, \ + " GEN $@") + dvi: qemu-doc.dvi qemu-tech.dvi html: qemu-doc.html qemu-tech.html info: qemu-doc.info qemu-tech.info
scripts/kvm/kvm_stat.texi new file +55 -0
55 lines not on this page · raw message
Signature · 1 line
2.1.0
PATCH 1/2 kvm_stat: add column headers to text UI
In reply to Stefan HajnocziThe curses user interface shows both the accumulated total and the current event counts. Add column headers so it's clear what the numbers mean.
--- scripts/kvm/kvm_stat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
scripts/kvm/kvm_stat +4 -1
@@ -519,7 +519,10 @@ def tui(screen, stats): def refresh(sleeptime): screen.erase() screen.addstr(0, 0, 'kvm statistics') - row = 2 + screen.addstr(2, 1, 'Event') + screen.addstr(2, 1 + label_width + number_width - len('Total'), 'Total') + screen.addstr(2, 1 + label_width + number_width + 8 - len('Current'), 'Current') + row = 3 s = stats.get() def sortkey(x): if s[x][1]:
Signature · 1 line
2.1.0
Quoted 7 lines · Stefan Hajnoczi
This series makes
kvm_stateasier to learn for newcomers by adding a man page and text UI column headers.Stefan Hajnoczi (2):
kvm_stat: add column headers to text UI
kvm_stat: add kvm_stat.1 man page
Quoted 6 lines
Makefile | 9 ++++++++ scripts/kvm/kvm_stat | 5 ++++- scripts/kvm/kvm_stat.texi | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 scripts/kvm/kvm_stat.texi
Patches are close to trivial, but anyway, I reviewed and tested them.
Signature · 4 lines
Ademar Reis Red Hat ^[:wq!
Quoted 7 lines · Stefan Hajnoczi
This series makes
kvm_stateasier to learn for newcomers by adding a man page and text UI column headers.Stefan Hajnoczi (2):
kvm_stat: add column headers to text UI
kvm_stat: add kvm_stat.1 man page
Quoted 6 lines
Makefile | 9 ++++++++ scripts/kvm/kvm_stat | 5 ++++- scripts/kvm/kvm_stat.texi | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 scripts/kvm/kvm_stat.texi
Thanks,
-Wei
Paolo Bonzini
AppliedQuoted 7 lines · Stefan Hajnoczi
This series makes
kvm_stateasier to learn for newcomers by adding a man page and text UI column headers.Stefan Hajnoczi (2):
kvm_stat: add column headers to text UI
kvm_stat: add kvm_stat.1 man page
Quoted 6 lines
Makefile | 9 ++++++++ scripts/kvm/kvm_stat | 5 ++++- scripts/kvm/kvm_stat.texi | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 scripts/kvm/kvm_stat.texi
Applied, thanks.
Paolo