Skip to content

Commit efcb521

Browse files
morecachebonzini
authored andcommitted
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 <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent cb9083e commit efcb521

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/kvm/kvm_stat/kvm_stat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,8 +1413,8 @@ performance.
14131413
14141414
Requirements:
14151415
- Access to:
1416-
/sys/kernel/debug/kvm
1417-
/sys/kernel/debug/trace/events/*
1416+
%s
1417+
%s/events/*
14181418
/proc/pid/task
14191419
- /proc/sys/kernel/perf_event_paranoid < 1 if user has no
14201420
CAP_SYS_ADMIN and perf events are used.
@@ -1434,7 +1434,7 @@ Interactive Commands:
14341434
s set update interval
14351435
x toggle reporting of stats for individual child trace events
14361436
Press any other key to refresh statistics immediately.
1437-
"""
1437+
""" % (PATH_DEBUGFS_KVM, PATH_DEBUGFS_TRACING)
14381438

14391439
class PlainHelpFormatter(optparse.IndentedHelpFormatter):
14401440
def format_description(self, description):

0 commit comments

Comments
 (0)