Skip to contentSkip to conversation

Stair step trace output since 12fb0ac05

Qemu-devel BALATON Zoltan 6 participants 7 messages Jun 6, 2018 – Jun 7, 2018

lore
Share & tools
lore
#0 lore raw

Hello,

Since 12fb0ac05 (char: Remove unwanted crlf conversion) trace output is printed in stair steps when using -trace and -serial stdio together. E.g.

$ qemu-system-i386 -trace 'pci*' -serial stdio

Regards,
BALATON Zoltan

#1 lore raw
Quoted 3 lines · BALATON Zoltan

Since 12fb0ac05 (char: Remove unwanted crlf conversion) trace output is printed in stair steps when using -trace and -serial stdio together. E.g.

$ qemu-system-i386 -trace 'pci*' -serial stdio

True! I'm seeing this too, didn't mind to bisect.

$ arm-softmmu/qemu-system-arm -M lm3s6965evb -serial vc -kernel
sd_card.bin -sd sdcard.img -d trace:sd* -S -monitor stdio
WARNING: Image format was not specified for 'sdcard.img' and probing
guessed raw.

Automatically detecting the format is dangerous for raw
images, write operations on block 0 will be restricted.

Specify the 'raw' format explicitly to remove the restrictions.

                                                        QEMU 2.12.50

monitor - type 'help' for more information (qemu) [email protected]:sdcard_hard_reset power-on

[email protected]:sdcard_set_voltage 3.300V (UHS:0)

[email protected]:sdcard_soft_reset reset

#2 lore raw
In reply to BALATON Zoltan
Quoted 5 lines · BALATON Zoltan

Hello,

Since 12fb0ac05 (char: Remove unwanted crlf conversion) trace output is printed in stair steps when using -trace and -serial stdio together. E.g.

$ qemu-system-i386 -trace 'pci*' -serial stdio

I had a feeling that we were going to find that there were situations where we really wanted to retain the crlf processing...

thanks
-- PMM

#4 lore raw
In reply to BALATON Zoltan
Quoted 9 lines · BALATON Zoltan

Hello,

Since 12fb0ac05 (char: Remove unwanted crlf conversion) trace output is printed in stair steps when using -trace and -serial stdio together. E.g.

$ qemu-system-i386 -trace 'pci*' -serial stdio

Regards,
BALATON Zoltan

I cc'ed the people involved with this patch for you.

#5 lore raw
Quoted 9 lines · Markus Armbruster
Quoted 7 lines · BALATON Zoltan

Hello,

Since 12fb0ac05 (char: Remove unwanted crlf conversion) trace output is printed in stair steps when using -trace and -serial stdio together. E.g.

$ qemu-system-i386 -trace 'pci*' -serial stdio
Quoted 4 lines
Quoted 2 lines

Regards,
BALATON Zoltan

I cc'ed the people involved with this patch for you.

Is it OK if you revert the change to chardev/char-stdio.c, but not chardev/char-serial.c ?

Thomas

#6 lore raw
Quoted 10 lines · Thomas Huth
Quoted 9 lines · Markus Armbruster
Quoted 7 lines · BALATON Zoltan

Hello,

Since 12fb0ac05 (char: Remove unwanted crlf conversion) trace output is printed in stair steps when using -trace and -serial stdio together. E.g.

$ qemu-system-i386 -trace 'pci*' -serial stdio
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Regards,
BALATON Zoltan

I cc'ed the people involved with this patch for you.

Is it OK if you revert the change to chardev/char-stdio.c, but not chardev/char-serial.c ?

That's what I did, and it was enough to fix the issues I had.

Thanks,

Laurent

#3 lore raw
In reply to Peter Maydell
Quoted 10 lines · Peter Maydell
Quoted 5 lines · BALATON Zoltan

Hello,

Since 12fb0ac05 (char: Remove unwanted crlf conversion) trace output is printed in stair steps when using -trace and -serial stdio together. E.g.

$ qemu-system-i386 -trace 'pci*' -serial stdio

I had a feeling that we were going to find that there were situations where we really wanted to retain the crlf processing...

I think the problem is that we've turned it on in char-stdio.c, too. char-serial.c should be sufficient.

Is someone volunteering for sending a patch to revert the changes in char-stdio.c ?

Thomas