From: replace_with Sobin Thomas <sobin.thomas@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kamil.konieczny@intel.com, dominik.karol.piatkowski@intel.com
Subject: [PATCH v1 i-g-t 1/1] tests/intel/xe_fault_injection: Inject fault for xe_hw_engine_class_to_str
Date: Tue, 1 Apr 2025 12:06:57 +0000 [thread overview]
Message-ID: <20250401120657.1829327-2-sobin.thomas@intel.com> (raw)
In-Reply-To: <20250401120657.1829327-1-sobin.thomas@intel.com>
From: Sobin Thomas <sobin.thomas@intel.com>
Use the fault injection infrastructure to make targeted fault injection in
functions xe_hw_engine_class_to_str and check the error handling in the
xe_hw_engine_class_sysfs_init() so that more code paths involving error
handling is tested.
Signed-off-by: Sobin Thomas <sobin.thomas@intel.com>
---
tests/intel/xe_fault_injection.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/intel/xe_fault_injection.c b/tests/intel/xe_fault_injection.c
index 24c114ba7..94c1bbf38 100644
--- a/tests/intel/xe_fault_injection.c
+++ b/tests/intel/xe_fault_injection.c
@@ -173,6 +173,7 @@ static void set_retval(const char function_name[], long long retval)
* @xe_guc_ct_init: xe_guc_ct_init
* @xe_guc_log_init: xe_guc_log_init
* @xe_guc_relay_init: xe_guc_relay_init
+ * @xe_hw_engine_class_to_str: xe_hw_engine_class_to_str
* @xe_mmio_probe_early: xe_mmio_probe_early
* @xe_pcode_probe_early: xe_pcode_probe_early
* @xe_pm_init_early: xe_pm_init_early
@@ -388,6 +389,7 @@ igt_main
{ "xe_guc_ct_init" },
{ "xe_guc_log_init" },
{ "xe_guc_relay_init" },
+ { "xe_hw_engine_class_to_str" },
{ "xe_mmio_probe_early" },
{ "xe_pcode_probe_early" },
{ "xe_pm_init_early" },
--
2.34.1
next prev parent reply other threads:[~2025-04-01 12:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 12:06 [PATCH i-g-t 0/1] tests/intel/xe_fault_injection: Inject fault for xe_hw_engine_class_to_str replace_with Sobin Thomas
2025-04-01 12:06 ` replace_with Sobin Thomas [this message]
2025-04-08 12:41 ` [PATCH v1 i-g-t 1/1] " Kamil Konieczny
2025-04-08 13:00 ` Thomas, Sobin
2025-04-01 14:07 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-04-01 14:27 ` ✓ i915.CI.BAT: " Patchwork
2025-04-01 16:55 ` ✗ Xe.CI.Full: failure " Patchwork
2025-04-01 18:19 ` ✗ i915.CI.Full: " Patchwork
2025-04-06 22:52 ` ✗ Xe.CI.Full: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250401120657.1829327-2-sobin.thomas@intel.com \
--to=sobin.thomas@intel.com \
--cc=dominik.karol.piatkowski@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox