mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
We can now record when a pageflip occurs by listening for the flip tracepoint. Merely proof of principle at this point. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
19 lines
327 B
C
19 lines
327 B
C
#include <stdint.h>
|
|
|
|
struct gpu_perf {
|
|
int page_size;
|
|
int nr_cpus;
|
|
int nr_events;
|
|
int *fd;
|
|
void **map;
|
|
struct gpu_perf_sample {
|
|
uint64_t id;
|
|
int (*func)(struct gpu_perf *, void *);
|
|
} *sample;
|
|
|
|
int flip_complete;
|
|
};
|
|
|
|
void gpu_perf_init(struct gpu_perf *gp, unsigned flags);
|
|
int gpu_perf_update(struct gpu_perf *gp);
|