Blame SOURCES/kvm-tools-kvm_stat-use-variables-instead-of-hard-paths-i.patch

4a2fec
From ac6ba9a14be2caa8b3b4cb051138b77521ce4b35 Mon Sep 17 00:00:00 2001
4a2fec
From: David Hildenbrand <david@redhat.com>
4a2fec
Date: Tue, 17 Oct 2017 19:16:04 +0200
4a2fec
Subject: [PATCH 59/69] tools/kvm_stat: use variables instead of hard paths in
4a2fec
 help output
4a2fec
4a2fec
RH-Author: David Hildenbrand <david@redhat.com>
4a2fec
Message-id: <20171017191605.2378-39-david@redhat.com>
4a2fec
Patchwork-id: 77346
4a2fec
O-Subject: [RHEL-7.5 qemu-kvm-rhev PATCH 38/39] tools/kvm_stat: use variables instead of hard paths in help output
4a2fec
Bugzilla: 1497137
4a2fec
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
4a2fec
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
4a2fec
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
4a2fec
RH-Acked-by: Thomas Huth <thuth@redhat.com>
4a2fec
4a2fec
Upstream-status: linux.git efcb521943a8df5210f16f312037c2edc3e1449f
4a2fec
4a2fec
commit efcb521943a8df5210f16f312037c2edc3e1449f
4a2fec
Author: Lin Ma <lma@suse.com>
4a2fec
Date:   Tue Jul 25 19:05:53 2017 +0800
4a2fec
4a2fec
    tools/kvm_stat: use variables instead of hard paths in help output
4a2fec
4a2fec
    Using variables instead of hard paths makes the requirements information
4a2fec
    more accurate.
4a2fec
4a2fec
    Signed-off-by: Lin Ma <lma@suse.com>
4a2fec
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
4a2fec
4a2fec
Signed-off-by: David Hildenbrand <david@redhat.com>
4a2fec
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
---
4a2fec
 scripts/kvm/kvm_stat | 6 +++---
4a2fec
 1 file changed, 3 insertions(+), 3 deletions(-)
4a2fec
4a2fec
diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
4a2fec
index dd8f00c..5704044 100755
4a2fec
--- a/scripts/kvm/kvm_stat
4a2fec
+++ b/scripts/kvm/kvm_stat
4a2fec
@@ -1413,8 +1413,8 @@ performance.
4a2fec
 
4a2fec
 Requirements:
4a2fec
 - Access to:
4a2fec
-    /sys/kernel/debug/kvm
4a2fec
-    /sys/kernel/debug/trace/events/*
4a2fec
+    %s
4a2fec
+    %s/events/*
4a2fec
     /proc/pid/task
4a2fec
 - /proc/sys/kernel/perf_event_paranoid < 1 if user has no
4a2fec
   CAP_SYS_ADMIN and perf events are used.
4a2fec
@@ -1434,7 +1434,7 @@ Interactive Commands:
4a2fec
    s     set update interval
4a2fec
    x     toggle reporting of stats for individual child trace events
4a2fec
 Press any other key to refresh statistics immediately.
4a2fec
-"""
4a2fec
+""" % (PATH_DEBUGFS_KVM, PATH_DEBUGFS_TRACING)
4a2fec
 
4a2fec
     class PlainHelpFormatter(optparse.IndentedHelpFormatter):
4a2fec
         def format_description(self, description):
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec