From: Alexander Yarygin <yary...@linux.vnet.ibm.com>

The 'live' command prints additional information to the "Analyze events
for " title bar about the current target.  Let's print the same title
for the 'report' command.

Signed-off-by: Alexander Yarygin <yary...@linux.vnet.ibm.com>
Acked-by: David Ahern <dsah...@gmail.com>
Cc: Christian Borntraeger <borntrae...@de.ibm.com>
Cc: David Ahern <dsah...@gmail.com>
Cc: Ingo Molnar <mi...@kernel.org>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Paul Mackerras <pau...@samba.org>
Cc: Peter Zijlstra <a.p.zijls...@chello.nl>
Link: 
http://lkml.kernel.org/r/1409579095-12963-4-git-send-email-yary...@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <a...@redhat.com>
---
 tools/perf/builtin-kvm.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c
index 84295ab6c4e1..f5d3ae483110 100644
--- a/tools/perf/builtin-kvm.c
+++ b/tools/perf/builtin-kvm.c
@@ -543,14 +543,12 @@ static void print_vcpu_info(struct perf_kvm_stat *kvm)
 
        pr_info("Analyze events for ");
 
-       if (kvm->live) {
-               if (kvm->opts.target.system_wide)
-                       pr_info("all VMs, ");
-               else if (kvm->opts.target.pid)
-                       pr_info("pid(s) %s, ", kvm->opts.target.pid);
-               else
-                       pr_info("dazed and confused on what is monitored, ");
-       }
+       if (kvm->opts.target.system_wide)
+               pr_info("all VMs, ");
+       else if (kvm->opts.target.pid)
+               pr_info("pid(s) %s, ", kvm->opts.target.pid);
+       else
+               pr_info("dazed and confused on what is monitored, ");
 
        if (vcpu == -1)
                pr_info("all VCPUs:\n\n");
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to