summaryrefslogtreecommitdiff
path: root/overlay/gem-objects.h
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/gem-objects.h')
-rw-r--r--overlay/gem-objects.h18
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);