mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-07 16:06:25 +00:00
overlay: Show power consumption without i915-pmu
The power metter was not showing up due to an erroneous check for a failure to open the i915 perf interface. Reported-by: Marius Vlad <marius.c.vlad@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
938b9306be
commit
8a8717eee3
@ -45,7 +45,7 @@ static int perf_open(void)
|
||||
|
||||
attr.type = i915_type_id();
|
||||
if (attr.type == 0)
|
||||
return -ENOENT;
|
||||
return -1;
|
||||
attr.config = I915_PERF_ENERGY;
|
||||
|
||||
attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user