Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 i-g-t 0/3] tests/xe_eudebug_online: Add set-breakpoint-sigint-debugger test
@ 2025-03-11 13:55 Dominik Karol Piątkowski
  2025-03-11 13:55 ` [PATCH v2 i-g-t 1/3] lib/eudebug: Make debugger thread SIGINTable Dominik Karol Piątkowski
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Dominik Karol Piątkowski @ 2025-03-11 13:55 UTC (permalink / raw)
  To: igt-dev
  Cc: Dominik Grzegorzek, Christoph Manszewski, Jan Sokolowski,
	Mika Kuoppala, Dominik Karol Piątkowski

Add a test that sends SIGINT to the debugger thread with random timing
and checks if nothing breaks, exercising the scenario multiple times.

In order for this test to work, make debugger thread SIGINTable.

While at it, fix rare xe_eudebug_client_stop corner case issue that was
spotted with the new test.

v2:
 - Initialize sigaction (Mika)
 - Count correctly timed SIGINTs and assert that they happened (Mika)

Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@intel.com>

Dominik Karol Piątkowski (3):
  lib/eudebug: Make debugger thread SIGINTable
  lib/eudebug: Fix xe_eudebug_client_stop corner case
  tests/xe_eudebug_online: Add set-breakpoint-sigint-debugger test

 lib/xe/xe_eudebug.c             | 18 ++++++-
 tests/intel/xe_eudebug_online.c | 96 +++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+), 2 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-03-13  7:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 13:55 [PATCH v2 i-g-t 0/3] tests/xe_eudebug_online: Add set-breakpoint-sigint-debugger test Dominik Karol Piątkowski
2025-03-11 13:55 ` [PATCH v2 i-g-t 1/3] lib/eudebug: Make debugger thread SIGINTable Dominik Karol Piątkowski
2025-03-11 13:55 ` [PATCH v2 i-g-t 2/3] lib/eudebug: Fix xe_eudebug_client_stop corner case Dominik Karol Piątkowski
2025-03-11 13:55 ` [PATCH v2 i-g-t 3/3] tests/xe_eudebug_online: Add set-breakpoint-sigint-debugger test Dominik Karol Piątkowski
2025-03-12 13:10   ` Mika Kuoppala
2025-03-12 13:23     ` Mika Kuoppala
2025-03-12  2:07 ` ✓ Xe.CI.BAT: success for tests/xe_eudebug_online: Add set-breakpoint-sigint-debugger test (rev2) Patchwork
2025-03-12  2:26 ` ✓ i915.CI.BAT: " Patchwork
2025-03-12 14:03 ` ✓ i915.CI.Full: " Patchwork
2025-03-12 17:41 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-13  7:06   ` Piatkowski, Dominik Karol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox