diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-20 10:04:23 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-20 10:26:23 +0100 |
commit | 5c81cda0ff092a13c6a1eb24149e7bf98e7242fa (patch) | |
tree | d04fc37c213aed9ea124427469298f3fad3dc206 /overlay/power.h | |
parent | baa5be07d6652bcd86353d25188505cb0199450a (diff) |
overlay: Add graph for GPU power consumption
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/power.h')
-rw-r--r-- | overlay/power.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/overlay/power.h b/overlay/power.h new file mode 100644 index 00000000..d77dbabc --- /dev/null +++ b/overlay/power.h @@ -0,0 +1,17 @@ +#include <stdint.h> + +struct power { + struct power_stat { + uint64_t energy; + uint64_t timestamp; + } stat[2]; + + int error; + int count; + int new_sample; + + uint64_t power_mW; +}; + +int power_init(struct power *power); +int power_update(struct power *power); |