[igt-dev] [PATCH i-g-t 2/3] runner: Dump the rest of dmesg also when child refuses to die

Petri Latvala petri.latvala at intel.com
Thu Mar 12 09:59:43 UTC 2020


Signed-off-by: Petri Latvala <petri.latvala at intel.com>
---
 runner/executor.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/runner/executor.c b/runner/executor.c
index 28b8a443..790f99db 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1054,6 +1054,10 @@ static int monitor_output(pid_t child,
 						     "but we didn't get informed of its demise...\n");
 				}
 
+				dump_dmesg(kmsgfd, outputs[_F_DMESG]);
+				if (settings->sync)
+					fdatasync(outputs[_F_DMESG]);
+
 				close_watchdogs(settings);
 				free(outbuf);
 				close(outfd);
-- 
2.20.1



More information about the igt-dev mailing list