summaryrefslogtreecommitdiff
path: root/lib/igt_perf.h
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-10-10 08:22:30 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-11-22 11:19:14 +0000
commit273e66baef8bf930959c503041b68411bb42ff80 (patch)
treef5e331f8979540cd1488597c491c5380fcd55f4a /lib/igt_perf.h
parent0d8385a7ad670e96dadef6e04e7541a64b637406 (diff)
intel-gpu-overlay: Use RAPL PMU for power reading
Wire up to the RAPL PMU for GPU energy readings. The only complication is that we have to add code to parse: # cat /sys/devices/power/events/energy-gpu.scale 2.3283064365386962890625e-10 v2: Link with -lm. v3: strtod can handle scientific notation, even though my initial reading of the man page did not spot that. (Chris Wilson) v4: Meson fix. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_perf.h')
-rw-r--r--lib/igt_perf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_perf.h b/lib/igt_perf.h
index db07b00a..938d5488 100644
--- a/lib/igt_perf.h
+++ b/lib/igt_perf.h
@@ -99,5 +99,6 @@ perf_event_open(struct perf_event_attr *attr,
uint64_t i915_type_id(void);
int perf_i915_open(uint64_t config);
int perf_i915_open_group(uint64_t config, int group);
+int igt_perf_open(uint64_t type, uint64_t config);
#endif /* I915_PERF_H */