提交 efcb5219 编写于 作者: L Lin Ma 提交者: Paolo Bonzini

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: NLin Ma <lma@suse.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 cb9083eb
...@@ -1413,8 +1413,8 @@ performance. ...@@ -1413,8 +1413,8 @@ performance.
Requirements: Requirements:
- Access to: - Access to:
/sys/kernel/debug/kvm %s
/sys/kernel/debug/trace/events/* %s/events/*
/proc/pid/task /proc/pid/task
- /proc/sys/kernel/perf_event_paranoid < 1 if user has no - /proc/sys/kernel/perf_event_paranoid < 1 if user has no
CAP_SYS_ADMIN and perf events are used. CAP_SYS_ADMIN and perf events are used.
...@@ -1434,7 +1434,7 @@ Interactive Commands: ...@@ -1434,7 +1434,7 @@ Interactive Commands:
s set update interval s set update interval
x toggle reporting of stats for individual child trace events x toggle reporting of stats for individual child trace events
Press any other key to refresh statistics immediately. Press any other key to refresh statistics immediately.
""" """ % (PATH_DEBUGFS_KVM, PATH_DEBUGFS_TRACING)
class PlainHelpFormatter(optparse.IndentedHelpFormatter): class PlainHelpFormatter(optparse.IndentedHelpFormatter):
def format_description(self, description): def format_description(self, description):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册