From e1ed5606c6dd9d320b97582a9575e2b86a17e844 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 18 Aug 2013 18:17:05 +0100 Subject: overlay: Parse gem objects Condense the information and begin graphing it. Remaining todo for memory is to measure bind/evict flux, and perhaps clflush. Signed-off-by: Chris Wilson --- overlay/gem-objects.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'overlay/gem-objects.h') diff --git a/overlay/gem-objects.h b/overlay/gem-objects.h index 898d18f0..b0c4519e 100644 --- a/overlay/gem-objects.h +++ b/overlay/gem-objects.h @@ -1 +1,17 @@ -int gem_objects_update(char *buf, int buflen); +#include + +struct gem_objects { + uint64_t total_bytes; + uint32_t total_count; + uint64_t total_gtt, total_aperture; + uint64_t max_gtt, max_aperture; + struct gem_objects_comm { + struct gem_objects_comm *next; + char name[256]; + uint64_t bytes; + uint32_t count; + } *comm; +}; + +int gem_objects_init(struct gem_objects *obj); +int gem_objects_update(struct gem_objects *obj); -- cgit v1.2.3