Commit 1f3e5b55 authored by Alexander Yarygin's avatar Alexander Yarygin Committed by Arnaldo Carvalho de Melo

perf kvm stat report: Unify the title bar output

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: default avatarAlexander Yarygin <yarygin@linux.vnet.ibm.com>
Acked-by: default avatarDavid Ahern <dsahern@gmail.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1409579095-12963-4-git-send-email-yarygin@linux.vnet.ibm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent f181957c
...@@ -543,14 +543,12 @@ static void print_vcpu_info(struct perf_kvm_stat *kvm) ...@@ -543,14 +543,12 @@ static void print_vcpu_info(struct perf_kvm_stat *kvm)
pr_info("Analyze events for "); pr_info("Analyze events for ");
if (kvm->live) { if (kvm->opts.target.system_wide)
if (kvm->opts.target.system_wide) pr_info("all VMs, ");
pr_info("all VMs, "); else if (kvm->opts.target.pid)
else if (kvm->opts.target.pid) pr_info("pid(s) %s, ", kvm->opts.target.pid);
pr_info("pid(s) %s, ", kvm->opts.target.pid); else
else pr_info("dazed and confused on what is monitored, ");
pr_info("dazed and confused on what is monitored, ");
}
if (vcpu == -1) if (vcpu == -1)
pr_info("all VCPUs:\n\n"); pr_info("all VCPUs:\n\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment