[PATCH i-g-t v1 1/1] tests/intel/xe_eudebug: Reduce debug loglevel
Jan Sokolowski
jan.sokolowski at intel.com
Thu Jun 12 12:11:04 UTC 2025
This test exceeds disk usage limit on CI environment
due to logging too many logs.
As it's copied from an already existing comment, link points
to the original mail and it's author.
Reduce the debug log level to 10 if it's bigger than that.
Signed-off-by: Jan Sokolowski <jan.sokolowski at intel.com>
Suggested-by: Pranay Samala <pranay.samala at intel.com>
Link: https://lore.kernel.org/all/20250128052825.424586-1-pranay.samala@intel.com/
---
tests/intel/xe_eudebug.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/tests/intel/xe_eudebug.c b/tests/intel/xe_eudebug.c
index bdf73c4e9..9e98c619a 100644
--- a/tests/intel/xe_eudebug.c
+++ b/tests/intel/xe_eudebug.c
@@ -20,6 +20,7 @@
#include <sys/prctl.h>
#include "igt.h"
+#include "igt_sysfs.h"
#include "intel_pat.h"
#include "lib/igt_syncobj.h"
#include "xe/xe_eudebug.h"
@@ -2798,8 +2799,18 @@ igt_main
int fd, gpu_count;
igt_fixture {
+ int dir, current_log_level;
fd = drm_open_driver(DRIVER_XE);
was_enabled = xe_eudebug_enable(fd, true);
+
+ dir = igt_sysfs_drm_module_params_open();
+ if (dir >= 0) {
+ current_log_level = igt_drm_debug_level_get(dir);
+ close(dir);
+
+ if (current_log_level > 10)
+ igt_drm_debug_level_update(10);
+ }
}
igt_subtest("sysfs-toggle")
--
2.34.1
More information about the igt-dev
mailing list