From: Sobin Thomas <sobin.thomas@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: piotr.piorkowski@intel.com, kamil.konieczny@intel.com,
Sobin Thomas <sobin.thomas@intel.com>
Subject: [PATCH i-g-t 2/2] tests/intel/xe_debugfs: Add checks for existing root dir entries
Date: Tue, 16 Jun 2026 05:13:46 +0000 [thread overview]
Message-ID: <20260616051348.610849-3-sobin.thomas@intel.com> (raw)
In-Reply-To: <20260616051348.610849-1-sobin.thomas@intel.com>
Add non-empty validation for existing root-dir debugfs entries
Validate:
- clients: entry is non empty
- gtt_mm: entry is non empty
- info: entry is non empty
- name: entry is non empty
Signed-off-by: Sobin Thomas <sobin.thomas@intel.com>
---
tests/intel/xe_debugfs.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/intel/xe_debugfs.c b/tests/intel/xe_debugfs.c
index d7a204a09..3697d481d 100644
--- a/tests/intel/xe_debugfs.c
+++ b/tests/intel/xe_debugfs.c
@@ -401,14 +401,14 @@ out:
static void test_root_dir(struct xe_device *xe_dev)
{
const struct check_entry expected_files[] = {
- { "clients", O_RDONLY },
+ { "clients", O_RDONLY, .validate = VALIDATE_NON_EMPTY },
{ "disable_late_binding", O_RDWR, .optional = true, .validate = VALIDATE_BOOL },
{ "forcewake_all", O_WRONLY },
{ "gem_names", O_RDONLY },
{ "gt%u", O_RDONLY, NULL, gt_iter_mask }, /* gt0, gt1, ... */
- { "gtt_mm", O_RDONLY },
- { "info", O_RDONLY },
- { "name", O_RDONLY },
+ { "gtt_mm", O_RDONLY, .validate = VALIDATE_NON_EMPTY },
+ { "info", O_RDONLY, .validate = VALIDATE_NON_EMPTY },
+ { "name", O_RDONLY, .validate = VALIDATE_NON_EMPTY },
{ "tile%u", O_RDONLY, NULL, tile_iter_mask }, /* tile0, tile1, ... */
{ "poor_man_system_atomic_support", O_RDWR, .optional = true, .validate = VALIDATE_BOOL },
{ "dgfx_pkg_residencies", O_RDONLY, .optional = true, .validate = VALIDATE_NON_EMPTY },
--
2.52.0
next prev parent reply other threads:[~2026-06-16 5:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-16 5:13 [PATCH i-g-t 0/2] tests/intel/xe_debugfs: Add debugfs entry Sobin Thomas
2026-06-16 5:13 ` [PATCH i-g-t 1/2] tests/intel/xe_debugfs: Add debugfs optional entry validation Sobin Thomas
2026-06-16 5:13 ` Sobin Thomas [this message]
2026-06-16 6:40 ` ✓ Xe.CI.BAT: success for tests/intel/xe_debugfs: Add debugfs entry Patchwork
2026-06-16 6:46 ` ✓ i915.CI.BAT: " Patchwork
2026-06-16 8:28 ` ✓ 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=20260616051348.610849-3-sobin.thomas@intel.com \
--to=sobin.thomas@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@intel.com \
--cc=piotr.piorkowski@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