summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-11-28 10:55:36 +0000
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-11-28 17:05:37 +0000
commit380cc811486ba3fefbe3ebe4761afa7e169dcd3e (patch)
tree79c8c7c71296a2967f768edcd6bde700268f8c9e
parent5b3619f3751ecef55fa993984ddb59a458fcebed (diff)
tests/perf_pmu: Sync invalid-init with i915 changes
i915 started returning -EINVAL for incorrect CPU. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tests/perf_pmu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index e527ba58..06c88d86 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -661,7 +661,8 @@ multi_client(int gem_fd, const struct intel_execution_engine2 *e)
* - sampling period is not supported
* - pid > 0 is not supported since we can't count per-process (we count
* per whole system)
- * - cpu != 0 is not supported since i915 PMU exposes cpumask for CPU0
+ * - cpu != 0 is not supported since i915 PMU only allows running on one cpu
+ * and that is normally CPU0.
*/
static void invalid_init(void)
{
@@ -687,7 +688,7 @@ do { \
ATTR_INIT();
igt_assert_eq(perf_event_open(&attr, -1, 1, -1, 0), -1);
- igt_assert_eq(errno, ENODEV);
+ igt_assert_eq(errno, EINVAL);
}
static void init_other(unsigned int i, bool valid)