summary refs log tree commit diff stats
path: root/results/classifier/105/graphic/1748612
diff options
context:
space:
mode:
Diffstat (limited to 'results/classifier/105/graphic/1748612')
-rw-r--r--results/classifier/105/graphic/174861248
1 files changed, 48 insertions, 0 deletions
diff --git a/results/classifier/105/graphic/1748612 b/results/classifier/105/graphic/1748612
new file mode 100644
index 000000000..8a24f5dff
--- /dev/null
+++ b/results/classifier/105/graphic/1748612
@@ -0,0 +1,48 @@
+semantic: 0.937
+graphic: 0.923
+mistranslation: 0.898
+other: 0.869
+instruction: 0.838
+device: 0.801
+KVM: 0.788
+network: 0.752
+socket: 0.743
+vnc: 0.738
+assembly: 0.674
+boot: 0.552
+
+qemu-user option -strace -D <file> doesn't work
+
+I have been trying to access qemu -strace output from a script
+The main problem was it was on stderr, the strace output was merged with my program's stderr output.
+Then I tried to use the -D option, to log the output to a file.
+This didn't work even if the log file was created, but it was empty.
+
+I have looked at the source code and found the print function was not qemu_log with -strace but gemu_log (to be clear it was GEMU NOT QEMU)
+
+
+I have then replaced all gemu_log by qemu_log removed declaration of gemu_log and recompiled, it seems to works just fine right now.
+
+removed declaration here and here:
+https://github.com/qemu/qemu/blob/master/linux-user/main.c#L108
+https://github.com/qemu/qemu/blob/master/linux-user/qemu.h#L203
+
+This is intentional, more or less. The -D logfile is for the debug logs enabled with -d, not for strace. I think if we wanted to support redirecting strace output to a file we might need to have an extra argument, to avoid breaking existing users.
+
+
+If this is not for strace, then why when I launch qemu as subprocess (example: from a python script)
+with option -strace -D <file> it creates a log file called <file>-strace? Seems like a bug to me.
+Anyway, I understand you don't want to break the current behavior, is there any chance this gets added in the near future?
+
+
+If you use -D <file> it will create a file named <file>, which will contain any logs created via the qemu_log subsystem (which might be nothing at all, depending on what the guest does). I don't know where the "-strace" part would come from unless you specified it as part of the filename.
+
+
+I will check that again, pretty sure I saw that.
+Anyway any chance there is an option/fix for that?
+Today it is impossible to differentiate strace output with program's stderr output, and it is causing trouble while used in scripts.
+
+
+I think this has been fixed here:
+https://git.qemu.org/?p=qemu.git;a=commitdiff;h=4b25a50674de41e72f6b3003
+