mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
25 lines
450 B
C
25 lines
450 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 *, const void *);
|
|
} *sample;
|
|
|
|
int flip_complete;
|
|
struct gpu_perf_comm {
|
|
struct gpu_perf_comm *next;
|
|
char name[256];
|
|
pid_t pid;
|
|
int nr_requests[4];
|
|
} *comm;
|
|
};
|
|
|
|
void gpu_perf_init(struct gpu_perf *gp, unsigned flags);
|
|
int gpu_perf_update(struct gpu_perf *gp);
|