Skip to content

Commit

Permalink
tools/kvm_stat: use variables instead of hard paths in help output
Browse files Browse the repository at this point in the history
Using variables instead of hard paths makes the requirements information
more accurate.

Signed-off-by: Lin Ma <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
morecache authored and bonzini committed Jul 26, 2017
1 parent cb9083e commit efcb521
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/kvm/kvm_stat/kvm_stat
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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):
Expand Down

0 comments on commit efcb521

Please sign in to comment.