]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tools/kvm_stat: use variables instead of hard paths in help output
authorLin Ma <lma@suse.com>
Tue, 25 Jul 2017 11:05:53 +0000 (19:05 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Jul 2017 17:04:52 +0000 (19:04 +0200)
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>
tools/kvm/kvm_stat/kvm_stat

index dd8f00cfb8b482b71b60529fac0618363dc8e540..5704044b1c0b8832aacf78a9ed7be314ff8ab33f 100755 (executable)
@@ -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):