diff options
author | Lin Ma <lma@suse.com> | 2017-07-25 07:05:53 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-26 13:04:52 -0400 |
commit | efcb521943a8df5210f16f312037c2edc3e1449f (patch) | |
tree | b0842c2cbb7591014be0a35b414ff7d500855a9f | |
parent | cb9083eb6e9cfb117c67f812065e82c7bdd64273 (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>
-rwxr-xr-x | tools/kvm/kvm_stat/kvm_stat | 6 |
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. | |||
1413 | 1413 | ||
1414 | Requirements: | 1414 | Requirements: |
1415 | - Access to: | 1415 | - Access to: |
1416 | /sys/kernel/debug/kvm | 1416 | %s |
1417 | /sys/kernel/debug/trace/events/* | 1417 | %s/events/* |
1418 | /proc/pid/task | 1418 | /proc/pid/task |
1419 | - /proc/sys/kernel/perf_event_paranoid < 1 if user has no | 1419 | - /proc/sys/kernel/perf_event_paranoid < 1 if user has no |
1420 | CAP_SYS_ADMIN and perf events are used. | 1420 | CAP_SYS_ADMIN and perf events are used. |
@@ -1434,7 +1434,7 @@ Interactive Commands: | |||
1434 | s set update interval | 1434 | s set update interval |
1435 | x toggle reporting of stats for individual child trace events | 1435 | x toggle reporting of stats for individual child trace events |
1436 | Press any other key to refresh statistics immediately. | 1436 | Press any other key to refresh statistics immediately. |
1437 | """ | 1437 | """ % (PATH_DEBUGFS_KVM, PATH_DEBUGFS_TRACING) |
1438 | 1438 | ||
1439 | class PlainHelpFormatter(optparse.IndentedHelpFormatter): | 1439 | class PlainHelpFormatter(optparse.IndentedHelpFormatter): |
1440 | def format_description(self, description): | 1440 | def format_description(self, description): |