perf tools: Add reference counting for thread_map object
[deliverable/linux.git] / tools / perf / tests / mmap-thread-lookup.c
index 264e215c0d36a9c2e2c2e775e57d7148f1223cec..145050e2e5446166f900f8d9405859b15bfcfff3 100644 (file)
@@ -129,7 +129,7 @@ static int synth_all(struct machine *machine)
 {
        return perf_event__synthesize_threads(NULL,
                                              perf_event__process,
-                                             machine, 0);
+                                             machine, 0, 500);
 }
 
 static int synth_process(struct machine *machine)
@@ -141,9 +141,9 @@ static int synth_process(struct machine *machine)
 
        err = perf_event__synthesize_thread_map(NULL, map,
                                                perf_event__process,
-                                               machine, 0);
+                                               machine, 0, 500);
 
-       thread_map__delete(map);
+       thread_map__put(map);
        return err;
 }
 
This page took 0.038439 seconds and 5 git commands to generate.