All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/perf_pmu: Make the invalid-init failure place more obvious
@ 2017-11-22 20:49 Tvrtko Ursulin
  2017-11-22 21:06 ` Chris Wilson
  2017-11-23 17:20 ` ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Tvrtko Ursulin @ 2017-11-22 20:49 UTC (permalink / raw)
  To: Intel-gfx

From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Put the values into the assert so we know which step failed.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 tests/perf_pmu.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index 17f0afca6fe1..14eeee43c55c 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -736,7 +736,6 @@ queued(int gem_fd, const struct intel_execution_engine2 *e)
 static void invalid_init(void)
 {
 	struct perf_event_attr attr;
-	int pid, cpu;
 
 #define ATTR_INIT() \
 do { \
@@ -748,21 +747,15 @@ do { \
 
 	ATTR_INIT();
 	attr.sample_period = 100;
-	pid = -1;
-	cpu = 0;
-	igt_assert_eq(perf_event_open(&attr, pid, cpu, -1, 0), -1);
+	igt_assert_eq(perf_event_open(&attr, -1, 0, -1, 0), -1);
 	igt_assert_eq(errno, EINVAL);
 
 	ATTR_INIT();
-	pid = 0;
-	cpu = 0;
-	igt_assert_eq(perf_event_open(&attr, pid, cpu, -1, 0), -1);
+	igt_assert_eq(perf_event_open(&attr, 0, 0, -1, 0), -1);
 	igt_assert_eq(errno, EINVAL);
 
 	ATTR_INIT();
-	pid = -1;
-	cpu = 1;
-	igt_assert_eq(perf_event_open(&attr, pid, cpu, -1, 0), -1);
+	igt_assert_eq(perf_event_open(&attr, -1, 1, -1, 0), -1);
 	igt_assert_eq(errno, ENODEV);
 }
 
-- 
2.14.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH i-g-t] tests/perf_pmu: Make the invalid-init failure place more obvious
  2017-11-22 20:49 [PATCH i-g-t] tests/perf_pmu: Make the invalid-init failure place more obvious Tvrtko Ursulin
@ 2017-11-22 21:06 ` Chris Wilson
  2017-11-23 17:20 ` ✗ Fi.CI.BAT: failure for " Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2017-11-22 21:06 UTC (permalink / raw)
  To: Tvrtko Ursulin, Intel-gfx

Quoting Tvrtko Ursulin (2017-11-22 20:49:58)
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> 
> Put the values into the assert so we know which step failed.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* ✗ Fi.CI.BAT: failure for tests/perf_pmu: Make the invalid-init failure place more obvious
  2017-11-22 20:49 [PATCH i-g-t] tests/perf_pmu: Make the invalid-init failure place more obvious Tvrtko Ursulin
  2017-11-22 21:06 ` Chris Wilson
@ 2017-11-23 17:20 ` Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2017-11-23 17:20 UTC (permalink / raw)
  To: Tvrtko Ursulin; +Cc: intel-gfx

== Series Details ==

Series: tests/perf_pmu: Make the invalid-init failure place more obvious
URL   : https://patchwork.freedesktop.org/series/34255/
State : failure

== Summary ==

Series 34255 revision 1 was fully merged or fully failed: no git log

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-23 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-22 20:49 [PATCH i-g-t] tests/perf_pmu: Make the invalid-init failure place more obvious Tvrtko Ursulin
2017-11-22 21:06 ` Chris Wilson
2017-11-23 17:20 ` ✗ Fi.CI.BAT: failure for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.