summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLin Ma <lma@suse.com>2017-07-25 19:05:53 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-07-26 19:04:52 +0200
commitefcb521943a8df5210f16f312037c2edc3e1449f (patch)
treeb0842c2cbb7591014be0a35b414ff7d500855a9f /tools
parentcb9083eb6e9cfb117c67f812065e82c7bdd64273 (diff)
tools/kvm_stat: use variables instead of hard paths in help output
Using variables instead of hard paths makes the requirements information more accurate. Signed-off-by: Lin Ma <lma@suse.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kvm/kvm_stat/kvm_stat6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat
index dd8f00cfb8b4..5704044b1c0b 100755
--- a/tools/kvm/kvm_stat/kvm_stat
+++ b/tools/kvm/kvm_stat/kvm_stat
@@ -1413,8 +1413,8 @@ performance.
Requirements:
- Access to:
- /sys/kernel/debug/kvm
- /sys/kernel/debug/trace/events/*
+ %s
+ %s/events/*
/proc/pid/task
- /proc/sys/kernel/perf_event_paranoid < 1 if user has no
CAP_SYS_ADMIN and perf events are used.
@@ -1434,7 +1434,7 @@ Interactive Commands:
s set update interval
x toggle reporting of stats for individual child trace events
Press any other key to refresh statistics immediately.
-"""
+""" % (PATH_DEBUGFS_KVM, PATH_DEBUGFS_TRACING)
class PlainHelpFormatter(optparse.IndentedHelpFormatter):
def format_description(self, description):