diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-27 12:24:18 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-27 12:31:13 +0100 |
commit | 14614060b8028f9ab4809f0b0e110a23980ecd14 (patch) | |
tree | 6563f47ad1004edd0405ab44b5f73fb9d9ad35d6 /overlay/gpu-freq.h | |
parent | 1c3fd70357a57f823846010f59ba75f19e5d4af9 (diff) |
overlay: Read frequency from perf
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/gpu-freq.h')
-rw-r--r-- | overlay/gpu-freq.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/overlay/gpu-freq.h b/overlay/gpu-freq.h index d78aa1bb..cdd2bb6c 100644 --- a/overlay/gpu-freq.h +++ b/overlay/gpu-freq.h @@ -25,7 +25,15 @@ #ifndef GPU_FREQ_H #define GPU_FREQ_H +#include <stdint.h> + struct gpu_freq { + struct gpu_freq_stat { + uint64_t act, req; + uint64_t timestamp; + } stat[2]; + int fd; + int count; int min, max; int rpn, rp1, rp0; int request; |