mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
18 lines
253 B
C
18 lines
253 B
C
#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);
|