]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/builtin-kvm.c
perf kmem: Fix a memory leak
[karo-tx-linux.git] / tools / perf / builtin-kvm.c
index 34d1e853829d3f9f2dbc129e1ab669a8c3e870a4..9fc6e0fa3dce22f838324da57b3e2929892ed70a 100644 (file)
@@ -22,9 +22,6 @@
 static const char              *file_name;
 static char                    name_buffer[256];
 
-bool                           perf_host = 1;
-bool                           perf_guest;
-
 static const char * const kvm_usage[] = {
        "perf kvm [<options>] {top|record|report|diff|buildid-list}",
        NULL
@@ -38,7 +35,7 @@ static const struct option kvm_options[] = {
        OPT_BOOLEAN(0, "guest", &perf_guest,
                    "Collect guest os data"),
        OPT_BOOLEAN(0, "host", &perf_host,
-                   "Collect guest os data"),
+                   "Collect host os data"),
        OPT_STRING(0, "guestmount", &symbol_conf.guestmount, "directory",
                   "guest mount directory under which every guest os"
                   " instance has a subdir"),
@@ -107,7 +104,8 @@ static int __cmd_buildid_list(int argc, const char **argv)
 
 int cmd_kvm(int argc, const char **argv, const char *prefix __used)
 {
-       perf_host = perf_guest = 0;
+       perf_host  = 0;
+       perf_guest = 1;
 
        argc = parse_options(argc, argv, kvm_options, kvm_usage,
                        PARSE_OPT_STOP_AT_NON_OPTION);