From f9a50de3dcc501e930de6c60983a4feb57121e7e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 17 Aug 2013 11:12:07 +0100 Subject: Introduce intel-gpu-overlay A realtime display of GPU activity. Note, this is just at the point of minimum usability... Signed-off-by: Chris Wilson --- overlay/gpu-top.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 overlay/gpu-top.h (limited to 'overlay/gpu-top.h') diff --git a/overlay/gpu-top.h b/overlay/gpu-top.h new file mode 100644 index 00000000..78f4daf2 --- /dev/null +++ b/overlay/gpu-top.h @@ -0,0 +1,22 @@ +#define MAX_RINGS 4 + +#include + +struct gpu_top { + int fd; + int num_rings; + struct gpu_top_ring { + const char *name; + union gpu_top_payload { + struct { + uint8_t busy; + uint8_t wait; + uint8_t sema; + } u; + uint32_t payload; + } u; + } ring[MAX_RINGS]; +}; + +void gpu_top_init(struct gpu_top *gt); +int gpu_top_update(struct gpu_top *gt); -- cgit v1.2.3