diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-18 18:17:05 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-18 18:17:05 +0100 |
commit | e1ed5606c6dd9d320b97582a9575e2b86a17e844 (patch) | |
tree | fa35e968a6623535d444eb6758a18931f02a4e60 /overlay/gem-objects.h | |
parent | de2c97b27fa176deec12a6277448397fcc246e47 (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/gem-objects.h')
-rw-r--r-- | overlay/gem-objects.h | 18 |
1 files changed, 17 insertions, 1 deletions
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 <stdint.h> + +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); |