]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/tests/hists_common.c
perf test: Create kernel maps properly for hist entries test
[karo-tx-linux.git] / tools / perf / tests / hists_common.c
index ce80b274b097332d02b5502fb0c5b88fc6d6016a..46f453b1de606c9e29308c6c08da678d97d3ac1a 100644 (file)
@@ -87,6 +87,11 @@ struct machine *setup_fake_machine(struct machines *machines)
                return NULL;
        }
 
+       if (machine__create_kernel_maps(machine)) {
+               pr_debug("Not enough memory for machine setup\n");
+               goto out;
+       }
+
        for (i = 0; i < ARRAY_SIZE(fake_threads); i++) {
                struct thread *thread;