| .. | .. |
|---|
| 8 | 8 | #include <stdlib.h> |
|---|
| 9 | 9 | #include <stdio.h> |
|---|
| 10 | 10 | #include "debug.h" |
|---|
| 11 | +#include "event.h" |
|---|
| 11 | 12 | #include "tests.h" |
|---|
| 12 | 13 | #include "machine.h" |
|---|
| 13 | 14 | #include "thread_map.h" |
|---|
| 15 | +#include "map.h" |
|---|
| 14 | 16 | #include "symbol.h" |
|---|
| 17 | +#include "util/synthetic-events.h" |
|---|
| 15 | 18 | #include "thread.h" |
|---|
| 16 | | -#include "util.h" |
|---|
| 19 | +#include <internal/lib.h> // page_size |
|---|
| 17 | 20 | |
|---|
| 18 | 21 | #define THREADS 4 |
|---|
| 19 | 22 | |
|---|
| .. | .. |
|---|
| 132 | 135 | { |
|---|
| 133 | 136 | return perf_event__synthesize_threads(NULL, |
|---|
| 134 | 137 | perf_event__process, |
|---|
| 135 | | - machine, 0, 500, 1); |
|---|
| 138 | + machine, 0, 1); |
|---|
| 136 | 139 | } |
|---|
| 137 | 140 | |
|---|
| 138 | 141 | static int synth_process(struct machine *machine) |
|---|
| 139 | 142 | { |
|---|
| 140 | | - struct thread_map *map; |
|---|
| 143 | + struct perf_thread_map *map; |
|---|
| 141 | 144 | int err; |
|---|
| 142 | 145 | |
|---|
| 143 | 146 | map = thread_map__new_by_pid(getpid()); |
|---|
| 144 | 147 | |
|---|
| 145 | 148 | err = perf_event__synthesize_thread_map(NULL, map, |
|---|
| 146 | 149 | perf_event__process, |
|---|
| 147 | | - machine, 0, 500); |
|---|
| 150 | + machine, 0); |
|---|
| 148 | 151 | |
|---|
| 149 | | - thread_map__put(map); |
|---|
| 152 | + perf_thread_map__put(map); |
|---|
| 150 | 153 | return err; |
|---|
| 151 | 154 | } |
|---|
| 152 | 155 | |
|---|