Chris Wilson | cc45a9a | 2013-08-17 17:38:37 +0100 | [diff] [blame^] | 1 | #include <stdint.h> |
2 | |||||
3 | struct gpu_perf { | ||||
4 | int page_size; | ||||
5 | int nr_cpus; | ||||
6 | int nr_events; | ||||
7 | int *fd; | ||||
8 | void **map; | ||||
9 | struct gpu_perf_sample { | ||||
10 | uint64_t id; | ||||
11 | int (*func)(struct gpu_perf *, void *); | ||||
12 | } *sample; | ||||
13 | |||||
14 | int flip_complete; | ||||
15 | }; | ||||
16 | |||||
17 | void gpu_perf_init(struct gpu_perf *gp, unsigned flags); | ||||
18 | int gpu_perf_update(struct gpu_perf *gp); |