OSDN Git Service

drm/i915/selftests: Include the subsubtest name for live_parallel_engines
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 23 Nov 2019 19:15:47 +0000 (19:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 23 Nov 2019 21:49:27 +0000 (21:49 +0000)
Include the name of the failing subsubtest, should it fails.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191123191547.925360-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_request.c

index 50cc7ca..c16d1ef 100644 (file)
@@ -1214,10 +1214,12 @@ static int live_parallel_engines(void *arg)
                return -ENOMEM;
 
        for (fn = func; !err && *fn; fn++) {
+               char name[KSYM_NAME_LEN];
                struct igt_live_test t;
                unsigned int idx;
 
-               err = igt_live_test_begin(&t, i915, __func__, "");
+               snprintf(name, sizeof(name), "%pS", fn);
+               err = igt_live_test_begin(&t, i915, __func__, name);
                if (err)
                        break;