summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-05-07 07:36:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-05-07 07:38:05 +0100
commitfdc33f7e1adc5bb6a1ba88b6233aaf224174d75a (patch)
tree1f5a8765e711758ea269c3dbe5042ebaf352b809 /tests
parentd5b673234f37b578a798d75f59be9d4afa1fb436 (diff)
perf_pmu: Fix typo for ignoring unknown events
In module_unload() we try and install all events, including events that are not defined for this device. These we are trying to check for failure and ignore in our read, but typo. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/perf_pmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index 206c8dd8..5384b526 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -1903,9 +1903,9 @@ static void test_unload(void)
igt_debug("Opening perf events\n");
fd = open_group(i915, I915_PMU_INTERRUPTS, -1);
- if (perf_i915_open_group(i915, I915_PMU_REQUESTED_FREQUENCY,fd))
+ if (perf_i915_open_group(i915, I915_PMU_REQUESTED_FREQUENCY,fd) != -1)
count++;
- if (perf_i915_open_group(i915, I915_PMU_ACTUAL_FREQUENCY, fd))
+ if (perf_i915_open_group(i915, I915_PMU_ACTUAL_FREQUENCY, fd) != -1)
count++;
__for_each_physical_engine(i915, e) {